Realistic Compilation by Partial Evaluation (1996)
| Venue: | In ACM SIGPLAN ’96 Conference On Programming Language Design and Implementation |
| Citations: | 8 - 1 self |
BibTeX
@INPROCEEDINGS{Sperber96realisticcompilation,
author = {Michael Sperber and Peter Thiemann},
title = {Realistic Compilation by Partial Evaluation},
booktitle = {In ACM SIGPLAN ’96 Conference On Programming Language Design and Implementation},
year = {1996},
pages = {206--214},
publisher = {ACM Press}
}
Years of Citing Articles
OpenURL
Abstract
Two key steps in the compilation of strict functional languages are the conversion of higher-order functions to data structures (clo- sures) and the transformation to tail-recursive style. We show how to perform both steps at once by applying first-order offline partial evaluation to a suitable interpreter. The resulting code is easy to transliterate to low-level C or native code. We have implemented the compilation to C; it yields a performance comparable to that of other modern Scheme-to-C compilers. In addition, we have integrated various optimizations such as constant propagation, higherorder removal, and arity raising simply by modifying the underlying interpreter. Purely first-order methods suffice to achieve the transformations. Our approach is an instance of semantics-directed compiler generation.







