Patents
US 7,840,950 B2#3085622 Most CitedActiveUnited States (USPTO)Utility

Programmatic compiler optimization of glacial constants

25Forward Citations (#3085622 Global)
1.6/yrCitation Velocity (#3281031 Global)
2.85Citation PageRank (#8253901 Global)
36Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

Optimizations are programmatically applied by a compiler (preferably, a just-in-time or “JIT” compiler), and enable achieving improved performance while a variable acts as a global constant, yet also allow code to execute correctly if the global constant's run-time value changes from the value on which the optimization was originally based. Code snippets that dynamically patch executable code are described, where these code snippets take corrective actions to enable correct program execution following a run-time change to the value of a glacial constant. A backup recovery path may also be maintained, where this path provides code that is executed in the event of a change to a glacial constant and that treats the glacial constant as a variable. Recompilation may also be used after a change to a glacial constant, where the originally-compiled code has made an assumption about the glacial constant's value that is no longer accurate. Combinations of these approaches may be used.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A computer-implemented method of optimizing compiler-generated code, comprising: for each of at least one selected variable for which a value thereof will be used as a glacial constant in the compiler-generated code, creating optimized compiler-generated code from source code for each of at least one method that references the selected variable, wherein the optimized compiler-generated code uses the value as the glacial constant by generating the code as if the value is a particular constant value for that selected variable; and providing a programmatic run-time adjustment capability for progr

Technical Overview & Description

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

References Cited — Backward Prior Art (36)

PatentTitleYearCitations
US 5,274,823 AInterrupt handling serialization for process level programming199341
US 5,408,629 AApparatus and method for controlling exclusive access to portions of addressable memory in a multiprocessor system1995137
US 5,481,706 ASystem and method for creating thread-safe shared libraries1996151
US 5,511,178 ACache control system equipped with a loop lock indicator for indicating the presence and/or absence of an instruction in a feedback loop section199668
US 5,560,018 AProviding external interrupt serialization compatibility in a multiprocessing environment for software written to run in a uniprocessor environment199639
US 5,768,610 ALookahead register value generator and a superscalar microprocessor employing same199875
US 5,790,851 AMethod of sequencing lock call requests to an O/S to avoid spinlock contention within a multi-processor environment1998103
US 5,845,298 AWrite barrier system and method for trapping garbage collection page boundary crossing pointer stores1998145
US 5,923,880 AMethod and apparatus for generating executable code from object-oriented source code199962
US 5,991,845 ARecoverable spin lock system199965
US 6,000,028 AMeans and apparatus for maintaining condition codes in an unevaluated state199950
US 6,108,757 AMethod for locking a shared resource in multiprocessor system200020
US 6,139,198 ASystem and method for enabling tracing of program execution in an object-oriented system200035
US 6,269,436 B1Superscalar microprocessor configured to predict return addresses from a return stack storage200172
US 6,324,686 B1Just in time compiler technique2001112

Non-Patent Literature (5)

  • Autrey and Wolfe, "Initial Results for Glacial Variables Analysis", 1998, International Journal of Parallel Programming, vol. 26, No. 1, pp. 43-64.
  • Calder, et al. "Value Profiling and Optimization", 1999, Journal of Instruction-Level Parallelism, pp. 1-37.
  • David Evans, "Lecture 12: Subtyping and Inheritance", University of Virginia, Oct. 2003: retrieved from "http://www.cs.virigina.edu/cs201/lectures/lecture12.ppt/" on Oct. 8, 2007.
  • Frank Tip and Peter F. Sweeney, "Class Hierarchy Specialization", 1997 ACM, pp. 271-281.
  • Kevin A. Stoodley et al., U.S. Appl. No. 09/867,362, filed May 29, 2001, Examiner's Interview Summary, Oct. 26, 2006, 1 page.