Sciweavers

SAIG
2000
Springer

Compiling Embedded Languages

14 years 4 months ago
Compiling Embedded Languages
Abstract. Functional languages are particularly well-suited to the implementation of interpreters for domain-specific embedded languages (DSELs). We describe an implemented technique for producing optimizing compilers for DSELs, based on Kamin's idea of DSELs for program generation. The technique uses a data type of syntax for basic types, a set of smart constructors that perform rewriting over those types, some code motion transformations, and a back-end code generator. Domain-specific optimization results from chains of rewrites on basic types. New DSELs are defined directly in terms of the basic syntactic types, plus host language functions and tuples. This definition style makes compilers easy to write and, in fact, almost identical to the simplest embedded interpreters. We illustrate this technique with a language Pan for the computationally intensive domain of image synthesis and manipulation. 1
Conal Elliott, Sigbjorn Finne, Oege de Moor
Added 25 Aug 2010
Updated 25 Aug 2010
Type Conference
Year 2000
Where SAIG
Authors Conal Elliott, Sigbjorn Finne, Oege de Moor
Comments (0)