NobleBlocks

Research indexReport

Compiling functional programs to Java byte-code

Meehan

Warwick Research Archive Portal (University of Warwick)11 Sep 2026Open access

NobleIDark:/48914/w1/20261105/4837B844DOI10.82444/warw.33641911

Free to read at the publisher

You can read the abstract here, or the full text at the publisher.

Read at the publisher

Abstract

The aim of the G-machine is to deconstruct a functional program, represented as a graph, into a list of linear instructions --- G-Code --- which, when executed, will construct an equivalent graph and reduce it into Weak Head Normal Form. The Java Virtual Machine (JVM) provides a machine-independent execution environment which executes Java byte-code. This byte-code is essentially a machine code for object-oriented programs. It was designed as the target of a Java compiler, but there is no reason why it cannot be used as the target of other languages. In this report we shall look at compiling functional programs down to the JVM, using the G-machine as a guide.

Citations

More

Suggest a correction or report