Method and apparatus for debugging optimized code
Abstract
Methods and apparatus for providing a substantially full set of state information to a debugger, without significantly compromising system performance, in order to debug optimized computer program code are disclosed. According to one aspect of the present invention, a method for obtaining information associated with program code includes adding a segment of code, which includes a representation that is effectively not used after it is computed, to the program code. Debugging code is added in proximity to the segment of code, and machine code is generated from the program code. The machine code includes a break point that is associated with the debugging code, and includes an instruction at the breakpoint. Finally, the method includes replacing the instruction at the break point with a branch instruction that is arranged to cause the debugging code to execute.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 2 · Forward citations: 59.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method for obtaining information associated with program code, the computer-implemented method comprising: adding a segment of code to the program code, the segment of code including a representation associated with a computation, the representation being arranged to be substantially unprocessed; adding debugging code in proximity to the segment of code; optimizing the program code; generating machine code associated with the optimized program code, the machine code including a break point and an associated instruction, the break point being associated with the debugging
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 59 total)
References Cited — Backward Prior Art (2)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 5,539,907 A | System for monitoring computer system performance | 1996 | 180 |
| US 5,732,273 A | System for monitoring compute system performance | 1998 | 169 |
Non-Patent Literature (3)
- Breuer et al., "Decompilation: the enumeration of types and grammars", ACM, pp. 1613-1647, Sep. 1994.*
- Ramsey et al., "A retargetable debugger", ACM pp. 22-31, Jun. 1992.*
- Ramsey et al., "Specifying Representations of Machine Instructions", ACM, pp. 492-524, May 1997.