Program interpreter
Abstract
A method and system is provided that allows a well-behaved program to execute more quickly than dynamically typed programming languages did in the past, thereby allowing a the dynamically typed language to be competitive with static declarative programming languages. A method includes converting lines of source code representing functions to byte-codes representing functions, selecting a subsequence of the byte-codes based on the byte-codes and the dynamic run-time properties of program variables, generating processor instructions in a compiler for the subsequence, and interpreting the byte-codes not contained in the subsequence.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 13.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A computer implemented method comprising steps of: converting lines of source code representing functions to byte-codes representing functions; selecting a subsequence of byte-codes based on the byte-codes and dynamic run-time properties of variables referenced by the byte-codes; generating processor instructions in a compiler for the subsequence; and generating alternate byte-codes in an accelerated interpreter for at least a portion of the byte-codes not contained in the subsequence.
- Claim 2Depends on #1
The method of claim 1 in which the properties comprise at least one of variable type or variable shape.
- Claim 3Depends on #2
The method of claim 2 in which selecting comprises: analyzing the type and shape of the variables referenced by the byte-codes; and determining whether at least one of the type or shape is modified.
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 (16)
Non-Patent Literature (5)
- TITLE: A Type System for Java Bytecode Subroutine, author: Stata et al, ACM, 1998.
- TITLE: Compiling Standard ML to Java Byte codes, author: Benton et al, ACM, 1998.
- TITLE: Fast, effective code generation in a Just-in-time Java Compiler, author: Adi-Tabatabai et al, ACM, 998.
- TITLE: Partial method compilation using dynamic profile information, author: Whaley, ACM, 2001.
- TITLE: Performance Measurement of Dynamically Compiled Java Excut ions, author: Newhall et al, ACM, 1999.