Patents
US 6,018,799 A#1010645 Most CitedExpiredUnited States (USPTO)Utility

Method, apparatus and computer program product for optimizing registers in a stack using a register allocator

48Forward Citations (#1010645 Global)
1.9/yrCitation Velocity (#2409124 Global)
6.42Citation PageRank (#2206453 Global)
3Prior Art Cited
2Claims (1 Indep. · 1 Dep.)
0Drawings / Sheets

Abstract

Apparatus, methods and computer program products are disclosed that enable a compiler to generate efficient code to access stack registers on a register stack. The invention operates by transforming a three-operand instruction, within a compiler's intermediate representation, to one or more fewer-than-three-operand instructions. The invention also transforms the instruction's operand addressing from an access to a pseudo-named register to an access to a stack register through stack offset into a register stack. The invention also determines the register stack state at each instruction responsive to register stack permutations and maps the stack offset accordingly for each subsequent access to a stack register.

Interactive Citation Constellation Global Citation Ranking

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

Claims (2 — 1 Independent, 1 Dependent)

  1. Claim 1Independent Claim

    A computer controlled method for efficiently employing a register stack that has a plurality of stack registers within a target computer architecture, said method comprising steps of: (a) transforming a three-operand instruction to one or more fewer-than-three-operand instructions; (b) analyzing said one or more fewer-than-three-operand instructions to determine lifetime information for one or more pseudo-registers; (c) inserting a pop operation into said one or more fewer-than-three-operand instructions dependant on said lifetime information; and (d) transforming operand references from

  2. Claim 2Depends on #1

    The computer controlled method of claim 1 wherein said target computer architecture includes an Intel compatible floating point unit.

Technical Overview & Description

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

Non-Patent Literature (5)

  • "Floating-Point Unit", Intel Architecture Software Developer's Manual, vol. 1: Basic Architecture, Chapter 7, 1997.
  • "Optimization Techniques for Floating-Point Applications", Intel Architecture Optimization Manual, Chapter 5, 1997.
  • Alfred V. Aho et al., "Compilers: Principles, Techniques and Tools," Addison-Wesley Publishing Co., 1988, Chapters 8,9 and 10, pp. 463-722.
  • Alfred V. Aho et al., "Compilers: Principles, Techniques and Tools," Addison-Wesley Publishing Co., 1988, pp.608-633.
  • Alfred V. Aho et al., Compilers: Principles, Techniques and Tools, Addison Wesley Publishing Co., 1988, Chapters 8,9 and 10, pp. 463 722.