Patents
US 6,158,048 A#582726 Most CitedExpiredUnited States (USPTO)Utility

Method for eliminating common subexpressions from java byte codes

64Forward Citations (#582726 Global)
2.5/yrCitation Velocity (#1360657 Global)
10.69Citation PageRank (#950325 Global)
11Prior Art Cited
2Claims (1 Indep. · 1 Dep.)
0Drawings / Sheets

Abstract

Compilers are tools that generate efficient mappings from programs to machines. A Java "Just-In-Time" runs as part of an application, and as such, it must be fast and efficient in its use of memory. To achieve good performance and further optimize code generation, the present invention introduces a method for eliminating common subexpressions from Java bytecodes. The method of the present invention first loads a code stream containing sequences of computer code into computer memory. The expression value for a first expression of a first code sequence is computed and stored in a memory location. A tag is assigned to the memory location holding this expression value for tracking which expression sequences' values are held in memory locations. As code compilation continues, the code selector looks ahead in the code stream to see if any upcoming expression sequences already have expression values stored in a memory location. The code selector compares the expression of a second code sequence with the code sequences annotated by the tags of expression values currently stored in memory. If the second code sequence matches a sequence already associated with a memory location,

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 64.

Claims (2 — 1 Independent, 1 Dependent)

  1. Claim 1Independent Claim

    A computer implemented method of optimizing code comprising: loading a code stream into computer memory, said code stream comprising of a set of sequences of code; storing a first expression value for a first expression in a first memory location, said first expression comprising of a first sequence of code; tracking said first expression value by annotating said first memory location with a tag of said first expression; performing a string compare of a second sequence of code with said first sequence of source; and replacing a second expression with said first expression value, said s

  2. Claim 2Depends on #1

    The method of claim 1 further comprising st

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Non-Patent Literature (5)

  • Aho et al.; Compilers, Principles, Techniques, and Tools. Addison Wesley Publishing Company, Reading, MA. Chapters 9 and 10, Dec. 1985.
  • Aho et al.; Compilers, Principles, Techniques, and Tools. Addison-Wesley Publishing Company, Reading, MA. Chapters 9 and 10, Dec. 1985.
  • Alfred V. Aho, et al., Compilers Principles, Techniques, and Tools, Published by Addison Wesley, 1988, pp. 1 24, Sep. 1985.
  • Alfred V. Aho, et al., Compilers-Principles, Techniques, and Tools, Published by Addison-Wesley, 1988, pp. 1-24, Sep. 1985.
  • Armstrong, E.; "HotSpot: A new breed of virtual machine", Javaworld [online]. Accessed on Jun. 22, 1999. Retrieved from:<http://www.javaworld.com>Mar. 1998.