System and method for obtaining scratch registers in computer executable binaries
Abstract
A system and method for obtaining scratch registers in a computer-executable binary is provided. Register allocation requests in a computer-executable binary are discovered. In one method, the register allocations are examined procedure-by-procedure. The maximum number of registers requested by any instruction in the procedure is discovered. Then, register requests in the procedure are modified to request the maximum number discovered plus a number of scratch registers. In another method, the register allocations are examined block-by block within a procedure. Dominating register allocations for each block are found. Then the dominating register allocations are modified to request scratch registers.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 1 · Forward citations: 7.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A computer-implemented method for obtaining scratch registers for use by a procedure in a computer-executable binary, comprising: identifying a maximum number of registers requested by the procedure; identifying an additional number of scratch registers for use by the procedure; generating a number of registers by adding the maximum number of registers and the additional number of scratch registers; modifying the computer-executable binary to request the number of registers; and requesting the number of registers.
- Claim 2Depends on #1
The method of claim 1 , wherein each of the scratch registers is indexed by an index that remains constant throughout the procedure.
- Claim 3Depends on #1
The method of claim 1 , wherein the number of requested registers is used for supporting instrumentation code in the computer-executable binary.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (1)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 6,631,514 B1 | Emulation system that uses dynamic binary translation and permits the safe speculation of trapping operations | 2003 | 129 |
Non-Patent Literature (5)
- Aho et al., "Compilers Principles, Techniques, and Tools", Addison-Wesley, pp. 585-702, 1986.*
- IBM Technical Disclosure Bulletin, "Register Allocation", vol. 28, No. 10, pp.: 4506-4513, Mar. 1986.*
- Kiyohara et al., "Register Connection: A New Approach to Adding Registers into Instruction Set Architechtures", IEEE, pp.: 247-256, 1993.*
- Lee et al., "Execution Characteristics of Desktop Applications on Windows NT," Proceedings of the 25<th >Annual International Symposium on Computer Architecture Barcelona, Spain, 1998, pp. 27-38.
- Moudgill et al., "Register Renaming and Dynamic Speculation: an Alternative Approach", IEEE, pp.: 202-213, Dec. 1993.*