Mechanism for finding spare registers in binary code
Abstract
The inventive system and method determines the availability of spare registers in binary code for use by an instrument or program by conducting a local search of either the immediate block of program code or of successor blocks, depending upon where instrumenting code is to be inserted. When inserting code near the begining the of a block of code, the system checks for available registers within the current block of code after the intended insertion point. A register is considered available if the original program overwrites its contents in a statement succeeding the insertion point without first having read data from this register between the insertion point and the current program statement. The system logs all registers found to be available within the immediate block of code using this approach. When the insertion point is at or near the end of a block of code, the system checks all immediate successor blocks for available registers in the same manmer as for the single block case. The system then determines which registers are available, or overwritten without prior access, in all of the successor blocks and deems only these registers to be available to the inserted instrumenti
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 56.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for identifying at least one data storage element referenced in existing program code available for use by inserted code, wherein the program code references a plurality of data storage elements, the method comprising the steps of: identifying an insertion point in said program code where at least one data storage element is required; reviewing program code statements succeeding said insertion point for usage of said plurality of data storage elements; determining availability of said plurality of data storage elements based upon reviewed usage of the plurality of data storage element
- Claim 2Depends on #1
The method of claim 1 , wherein the step of reviewing ends at the conclusion of a predet
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 56 total)
References Cited — Backward Prior Art (9)
Non-Patent Literature (5)
- Cheng et al., "Code generation for a DSP processor", IEEE,1994, pp 82-87.
- Deodhar, "Optimizing compiler technology streamlines complex systems", Electronic Design, May 1997, vol. 45 No. 9, pp 153-160.
- Larus et al., "EEL: Machine-independent executable editing", SIGPLAN '95, ACM, 1995, pp 291-300.
- Wall, "Register windows vs. register allocation", SIGPLAN '88, ACM, 1988, pp 67-78.
- Wess et al., "Automatic generation of optimized DSP assembly code", IEEE,1995, pp 979-984.