Patent ID: 7213240
Filing Date: 2007-05-01
Classification: G06F

Abstract:
1. A process for platform-independent selective ahead-of-time compilation in a system including a host and a device, comprising: selecting, by the host, a subset of methods from bytecodes for ahead-of-time compilation, the selecting including ranking a set of methods according to predetermined criteria and identifying the subset of methods from the set of methods using a heuristic, wherein the bytecodes are compiled from source codes prior to the ahead-of-time compilation; converting, by the host, for each selected method, the bytecodes corresponding to the selected method to a platform-independent intermediate representation; storing each of the intermediate representations with a corresponding selected method; and loading at least one of the selected methods onto the device for execution by a virtual machine on the device, wherein the virtual machine accesses a method descriptor data structure associated with the at least one selected method, determines whether the at least one selected method has an intermediate representation associated with it, and, based on a determination that the at least one selected method is associated with an intermediate representation, converts the intermediate representation associated with the at least one selected method to platform-dependent machine code.