Lazy functional languages seem to be unsuitable for programming embedded computers because their implementations require so much memory for program code and graph. In this paper we describe a new abstract machine for the implementation of lazy functional languages on embedded computers called the X-machine. The X-machine has been designed so that program code can be stored compactly as byte code, yet run quickly using dynamic compilation. Our first results are promising - programs typically require only 33% of the code space of an ordinary implementation, but run at 75% of the speed. Future work needs to concentrate on reducing the size of statically-allocated data and the run-time system, and on developing a more detailed understanding of throw-away compilation.
CITATION STYLE
Wakeling, D. (1998). The dynamic compilation of lazy functional programs. Journal of Functional Programming, 8(1), 61–81. https://doi.org/10.1017/S0956796897002955
Mendeley helps you to discover research relevant for your work.