Efficient JavaVM just-in-time compilation
- 27 November 2002
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 1089795X,p. 205-212
- https://doi.org/10.1109/pact.1998.727250
Abstract
Conventional compilers are designed for producing highly optimized code without paying much attention to compile time. The design goals of Java just-in-time compilers are different: produce fast code at the smallest possible compile time. In this article we present a very fast algorithm for translating JavaVM byte code to high quality machine code for RISC processors. This algorithm handles combines instructions, does copy elimination and coalescing and does register allocation. It comprises three passes: basic block determination, stack analysis and register preallocation, final register allocation and machine code generation. This algorithm replaces an older one in the CACAO JavaVM implementation reducing the compile time by a factor of seven and producing slightly faster machine code. The speedup comes mainly from following simplifications: fixed assignment of registers at basic block boundaries, simple register allocator better exception handling better memory management and fine tuning the implementation. The CACAO system is currently faster than every JavaVM implementation for the Alpha processor and generates machine code for all used methods of the javac compiler and its libraries in 60 milliseconds on an Alpha workstation.Keywords
This publication has 7 references indexed in Scilit:
- Monitors and exceptions: how to implement Java efficientlyConcurrency: Practice and Experience, 1998
- CACAO — A 64-bit JavaVM just-in-time compilerConcurrency: Practice and Experience, 1997
- Multi-language, multi-target compiler development: Evolution of the Gardens Point compiler projectPublished by Springer Nature ,1997
- Efficiently computing static single assignment form and the control dependence graphACM Transactions on Programming Languages and Systems, 1991
- The design of very fast portable compilersACM SIGPLAN Notices, 1989
- A practical tool kit for making portable compilersCommunications of the ACM, 1983
- A first version of UNCOLPublished by Association for Computing Machinery (ACM) ,1961