Systems and methods to read, optimize, and verify byte codes for a multiplatform jit
Abstract
A byte code reader provides verification while optimizing and creating an internal SSA form to allow efficient machine code generation. Many functions are combined in one component honoring the difficult time constraints of just-in-time translation. This reader is engineered for retargeting and thus expedites the implementation of a JIT for any platform. The reader takes two single passes over the byte codes: a first pass that builds a flow graph using any set of rules for node creation, and maps definitions from the byte codes onto the flow graph nodes, and a second pass that translates whatever is in the byte codes into optimized machine code (or a traditional compiler intermediate form) with an embedded SSA graph. Global verification and global optimization are implemented while reading. Two data structures and a main program loop are provided. The data structures are used to allow the creation of a flow graph, and an exception handling (EH) graph.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 13.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
In a computer system, a process of mapping arbitrary flow and definition points from an intermediate language (IL), the IL comprising byte codes, to an internal compiler representation, the process comprising: creating a flow graph having a plurality of nodes with pointers to the byte codes, the pointers indicating beginning and ending byte code offsets; identifying a plurality of definitions in the IL; mapping the definitions to the flow graph nodes; translating the IL into a compiler intermediate representation; performing global verification and optimization of the compiler intermediate rep
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (13 of 13 total)
References Cited — Backward Prior Art (11)
Non-Patent Literature (5)
- Cytron, R. et al., "An Efficient Method of Computing Static Single Assignment Form", Principles of Programming Language, 1989, 25-35.
- Goff, T. et al., "Preemptive Routing in Ad Hoc Networks", ACM Sigmobile, 2001, 43-52.
- John Whaley "Joeq: a virtual machine and compiler infrastructure" Jun. 2003 ACM Press, IVME' 03, pp. 58-66.
- Lapkowski et al. "Extended SSA Numbering: Introducing SSA properties to languages with multi-level pointers", IBM Press, Nov. 1966.
- Michael P. Gerlek, et al. "Beyond Induction Variables: Detecting and Classifying Sequences Using a Demand-Driven SSA", Jan. 1995, ACM Press, TOPLAS vol. 17, Issue 1 pp. 85-122.