Tracking variable information in optimized code
Abstract
Embodiments are directed to tracking variable location information in optimized code and efficiently collecting and storing reaching definition information. A computer system receives a portion of source code at a compiler, where the compiler is configured to compile and optimize the source code for execution. The computer system tags selected variables in the source code with a tag, where the tag is configured to provide location information for the variable. The computer system optimizes the received portion of source code including changing at least one of the tagged variables. The computer system also tracks the tagged variables as the variables are changed by the compiler during code optimization and persists the variable location information, so that the persisted variable location information is available to other compiler components.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 34 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
At a computer system including a processor and a memory, a computer-implemented method for tracking variable location information in optimized code, the method comprising the computer system performing the following acts: receiving a portion of source code at a compiler, wherein the compiler is configured to compile and optimize the source code for execution; tagging one or more selected variables in the source code with a tag, wherein the tag is configured to provide location information for the variable and wherein tagging the one or more selected variables occurs before the compiler convert
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (34)
Non-Patent Literature (5)
- A Practical, Robust Method for Generating Variable Range Tables-Published Date: Sep. 15, 2000 http://www.hpl.hp.com/techreports/Compaq-DEC/SRC-RR-165.pdf (21 pages).
- Brooks, Gary, Gilbert J. Hansen, and Steve Simmons. "A new approach to debugging optimized code." ACM SIGPLAN Notices. vol. 27. No. 7. ACM, 1992, pp. 1-11.
- Bruno Blanchett. Escape Analysis ofr Object Oriented Languages. Application to JavaTM. OOPSLA '99. Nov. 1999, Denver Co, USA. 1999 ACM http:///delivery.acm.org/10.1145/330000/320387/p20-blanchet.pdf?key1=320387&key2=9044683711&coll=GUIDE&CFID=16889188&CFTOKEN=58353024 Last Access Mar. 15, 2007.
- Comparison Checking: An Approach to Avoid Debugging of Optimized Code-Published Date: 1999 http://www.cs.virginia.edu/~soffa/research/SE/fse99.ps (17 pages).
- Comparison Checking: An Approach to Avoid Debugging of Optimized Code—Published Date: 1999 http://www.cs.virginia.edu/˜soffa/research/SE/fse99.ps (17 pages).