Patent ReferencesCompiler and method for avoiding unnecessary recompilation Method and apparatus for automatically logging compiler options and/or overriding compiler options Method and apparatus for improving compiler performance during subsequent compilations of a source program Patent #: 6078744 InventorApplicationNo. 183499 filed on 10/30/1998US Classes:717/145, Including recompilation712/222, Floating point or vector717/148, Just-in-time compiling or dynamic compiling (e.g., compiling Java bytecode on a virtual machine)717/151OptimizationExaminersPrimary: Chaki, KakaliAssistant: Zhen, Wei Attorney, Agent or FirmInternational ClassG06F 009/45AbstractApparatus, methods, and computer program products are disclosed for determining how to compile a program at runtime. A bytecode instruction associated with the program that can be compiled in multiple ways is retrieved and compiled in a particular way, typically the default way. At runtime, a virtual machine determines whether another way of compiling the bytecode instruction is more desirable and, if so, the bytecode is then recompiled the other way. In some embodiments, the portion of the program that contains the bytecode instruction to be recompiled is placed in a queue with other instructions that are to be recompiled. The virtual machine may examine changing requirements of the program that have developed at the program's execution in which the requirements are derived from profile data on each of the multiple ways the program can be compiled. The bytecode instruction within the program may be recompiled in a more preferred way based upon the profile data.Other References
| |