Paper record
W2071457257Efficient compilation of lazy evaluation
Thomas Johnsson
- Year
- 1984
- Venue
- ACM SIGPLAN Symposium on Compiler Construction
- References
- 11
- Cited by
- 182
Details and counts from OpenAlex.
Abstract
This paper describes the principles underlying an efficient implementation of a lazy functional language, compiling to code for ordinary computers. It is based on combinator-like graph reduction: the user defined functions are used as rewrite rules in the graph. Each function is compiled into an instruction sequence for an abstract graph reduction machine, called the G-machine, the code reduces a function application graph to its value. The G-machine instructions are then translated into target code. Speed improvements by almost two orders of magnitude over previous lazy evaluators have been measured; we provide some performance figures.