Lambda, the ultimate label or a simple optimizing compiler for Scheme
Authors:
- William D. ClingerWCWilliam D. Clinger
- Lars Thomas HansenLHLars Thomas Hansen
Open Access
- 1 July 1994
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Lisp Pointers
- Vol. VII (3) , 128-139
Abstract
Optimizing compilers for higher-order languages need not be terribly complex. The problems created by non-local, non-global variables can be eliminated by allocating all such variables in the heap. Lambda lifting makes this practical by eliminating all non-local variables except for those that would have to be allocated in the heap anyway. The eliminated non-local variables become local variables that can be allocated in registers. Since calls to known procedures are just gotos that pass arguments, lifted lambda expressions are just assembly language labels that have been augmented by a list of symbolic names for the registers that are live at that label.Keywords
This publication has 14 references indexed in Scilit:
- The Python compiler for CMU Common Lisp1992
- Taming the Y operatorACM SIGPLAN Lisp Pointers, 1992
- Revised 4 report on the algorithmic language schemeACM SIGPLAN Lisp Pointers, 1991
- Macros that work1991
- Representing control in the presence of first-class continuationsACM SIGPLAN Notices, 1990
- Efficient stack allocation for tail-recursive languages1990
- Implementation strategies for continuations1988
- ORBIT: an optimizing compiler for schemeACM SIGPLAN Notices, 1986
- A compiler for lazy ML1984
- A new implementation technique for applicative languagesSoftware: Practice and Experience, 1979