Patent ID: 8793670

Claim:
A system for early platform dependency preparation of intermediate code representation during bytecode compilation, comprising: a computer server, including a computer hardware, operating system, storage, and virtual machine; a bytecode compiler that executes on the computer server to receive application bytecode and compile the application bytecode into resulting native code, wherein the bytecode compiler transforms the bytecode into a high-level intermediate representation (HIR), and then into a medium-level intermediate representation (MIR), recursively expands the MIR, including determining those MIR that can be expressed as a more detailed MIR, expanding those MIR to be more adapted to the platform conventions of a particular platform including the operating system and the computer hardware, optimizing the expanded MIR using a combination of strength reduction, constant propagation, copy propagation, inlining, locking, escape analysis, or object explosion optimizations, and repeating the determining, expanding and optimizing steps for one or more additional MIR, transforms the MIR resulting from MIR-to-MIR expansion into a low-level intermediate representation (LIR), and then into the native code.