Reducing the Overhead of Compilation Delay

Chandra Krintz, David Grove, Derek Lieber, Vivek Sarkar and Brad Calder
CS2000-0648
March 27, 2000

The execution model for mobile dynamically-linked object--oriented programs has evolved from fast interpretation to a mix of interpreted and dynamically compiled execution. The primary motivation for dynamic compilation is that compiled code executes significantly faster than interpreted code. However, since dynamic compilation is performed while the application is running, the biggest challenge in using dynamic compilation is to reduce its overhead so as not to mitigate the runtime improvement that it delivers. Techniques for reducing dynamic compilation overhead can be classified as (1) decreasing the amount of compilation performed, or (2) overlapping compilation with useful work. In this paper, we first evaluate the effectiveness of Lazy Compilation as a technique for decreasing the amount of compilation performed. In lazy compilation, individual methods are compiled on demand (when called), thus avoiding the load-time delay of compiling all methods when a new class/module is loaded. Our experimental results (obtained by executing the specJVM Java programs on the Jalapeno JVM) show that lazy compilation results in compilation of 57% to 63% fewer methods, and a reduction in compilation time of approximately 30%, when compared to load-time compilation. Next, we present Profile-driven Background Compilation as a new technique for overlapping compilation with execution. The motivation for background compilation is to use idle cycles in multiprocessor systems to overlap compilation with application execution. Profile information is used to prioritize methods as candidates for background compilation. Our results show that background compilation can deliver significant reductions (26% to 79%) in total time i.e., compilation plus execution time, compared to serial (non-background) compilation.


How to view this document


The authors of these documents have submitted their reports to this technical report series for the purpose of non-commercial dissemination of scientific work. The reports are copyrighted by the authors, and their existence in electronic format does not imply that the authors have relinquished any rights. You may copy a report for scholarly, non-commercial purposes, such as research or instruction, provided that you agree to respect the author's copyright. For information concerning the use of this document for other than research or instructional purposes, contact the authors. Other information concerning this technical report series can be obtained from the Computer Science and Engineering Department at the University of California at San Diego, techreports@cs.ucsd.edu.


[ Search ]


NCSTRL
This server operates at UCSD Computer Science and Engineering.
Send email to webmaster@cs.ucsd.edu