9. A system for cross language inlining comprising: a machine code generation unit comprising circuitry and configured to receive source code of a multiple language program, the source code comprising a main language and a first access of a first foreign object via a first additional language and comprising: a first translator comprising circuitry and configured to translate the main language to obtain a main language intermediate representation (IR); a second translator comprising circuitry and configured to translate the first access of the first foreign object to obtain a first IR snippet; a cross-language IR generation module comprising circuitry and configured to compose the main language IR and the first IR snippet to obtain a cross-language IR, wherein the main language IR and the first IR snippet are configured to perform: encountering, during execution of the main language IR, a foreign object access site for performing the first access of the first foreign object; and adding a first language check element to the first IR snippet at the foreign object access site, wherein the first language check element determines that the first access of the first foreign object is in the first additional language; and a compiler comprising circuitry and configured to perform a compilation of the cross-language IR to obtain machine code corresponding to the multiple language program.
14. The system of claim 9 , wherein the machine code generation unit further comprises an IR modification module comprising circuitry and configured to: perform, before the compilation of the cross-language IR, a modification to obtain a modified cross-language IR; and determine that the modified cross language IR has reached a stable state; and wherein the compiler is further configured to: compile the modified cross-language IR instead of the cross-language IR based on the determination.