Abstract
Early Java implementations relied on interpretation, leading to poor performance compared to compiled programs. Java just-in-time (JIT) compiler can compile Java programs at runtime, so it not only improves Java’s performance prominently, but also preserves Java’s portability. In this paper the design and implementing techniques of Java JIT compiler based on Chinese open system are discussed in detail. To enhance the portability, a translating method which combines the static simulating method and macro expansion method is adopted. The optimization technique for JIT compiler is also discussed and a way to evaluate the hotspots in Java programs is presented. Experiments have been conducted to verify JIT compilation technique as an efficient way to accelerate Java.
Similar content being viewed by others
References
Cheng-Hsueh A Hsieh. Java bytecode to native code translation: The caffeine prototype and preliminary results. InProc. the 29th International Symposium on Microachitecture, Paris, France, December 1996. pp. 90–99.
Timothy Cramer. Compiling Java just in time.IEEE Micro, May/June 1997, 17(3): 36–43.
Michal Cierniak. Fast, effective code generation in a Just-In-Time Java compiler. InACM SIGPLAN’98 Conference on PLDJ, Montreal, Canada, June 1998, pp. 280–290.
Steven S Muchnick. Advanced Compiler Design Implementation. San Franciso, California: Morgan Kaufmann Publishers, 1998.
Bothner P. A GCC-based Java Implementation. InCompcon97. San Jose, California, USA, February, 1997, pp. 74–78.
Chang P P. Using profile information to assist classic code optimizationsSoftware Prac. and Exp., 1991, 21(12): 1301–1321.
Author information
Authors and Affiliations
Additional information
DING Yuxin was born in 1972. He received the Ph.D. degree from Institute of Software, the Chinese Academy of Sciences in 1999. His research interests are programming languages, compilers and neural network.
MEI Jia was born in 1973. He received the M.S. degree from Institute of Software, the Chinese Academy of Sciences in 2000. His research interests are programming languages, compilers and operating systems.
CHENG Hu was born in 1938. He is a professor and Ph.D. supervisor of the Institute of Software, the Chinese Academy of Sciences. His current research areas include programming languages, compilers, software engineering. AI and neural network.
Rights and permissions
About this article
Cite this article
Ding, Y., Mei, J. & Cheng, H. Design and implementation of Java just-in-time compiler. J. Comput. Sci. & Technol. 15, 584–590 (2000). https://doi.org/10.1007/BF02948840
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF02948840