Unifying static and dynamic compiler optimizations in source-code bases
Abstract
Techniques are described for unifying static and dynamic compiler optimizations in source code bases. In an embodiment, a first compiler compiles source code of a target function to generate ahead-of-time (AOT) compiled machine code. A second compiler compiles the source code to generate an intermediate representation (IR) of the target function. In response to determining that the target function should be just-in-time (JIT) compiled, the AOT-compiled machine code for the target function is linked to the IR of the target function. During runtime, a physical processor executes AOT-compiled machine code of an executable program. When the target function is encountered for the first time, a JIT compiler is invoked. The JIT compiler generates JIT-compiled machine code for the target function. The physical processor executes the JIT-compiled machine code in place of the AOT-compiled machine code for the target function.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 21 · Forward citations: 12.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method comprising: executing ahead-of-time (AOT) compiled code for a particular program; detecting that a target function of the particular program should be just-in-time (JIT) compiled; in response to detecting that the target function of the particular program should be JIT compiled, generating a JIT-compiled version of the target function; patching an AOT-compiled version of the target function to the JIT-compiled version of the target function; and in response to patching the AOT-compiled version of the target function to the JIT-compiled version of the target function, executing the JIT
- Claim 2Depends on #1
The method of claim 1 , wherein the JIT-co
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (12 of 12 total)
References Cited — Backward Prior Art (21)
Non-Patent Literature (5)
- Arnold, Matthew et al., Dynamic Compilation and Adaptive Optimization in Virtual Machines, 2006, 184 pages.
- Bohm, Igor et al., Generalized Just-in-Time Trace Compilation using a Parallel Task Farm in a Dynamic Binary Translator, 2011, pp. 74-85.
- Erhardt, Christoph et al., Exploiting Static Application Knowledge in a Java Compiler for Embedded Systems: A Case Study, 2011, pp. 96-105.
- Fulton, Mike et al., Compilation Techniques for Real-Time Java Programs, 2007, 11 pages.
- Lim, Yeong-Kyu et al., A Selective Ahead-of-Time Compiler on Android Device, 2012, 6 pages.