Handling pointers in program code in a system that supports multiple address spaces
Abstract
Some embodiments include a processing subsystem that compiles program code to generate compiled program code. In these embodiments, while compiling the program code, the processing subsystem first identifies a pointer in the program code that points to an unspecified address space. The processing subsystem then analyzes at least a portion of the program code to determine one or more address spaces to which the pointer may point. Next, the processor updates metadata for the pointer to indicate the one or more address spaces to which the pointer may point, the metadata enabling a determination of an address space to which the pointer points during subsequent execution of the compiled program code.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 2.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for compiling program code, comprising: in a processing subsystem, performing operations for compiling the program code to generate compiled program code, the operations comprising: identifying a pointer in the program code that points to an unspecified address space; analyzing at least a portion of the program code to determine one or more address spaces to which the pointer may point; and updating metadata for the pointer to indicate the one or more address spaces to which the pointer may point, the metadata enabling a determination of an address space to which the pointer points du
- Claim 2Depends on #1
The method of claim 1 , wherein the operations further comprise: adding one or more first instructions to the compiled program code, the first instructions for determining
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (9)
Non-Patent Literature (2)
- Warg et al., Rounding pointers: type safe capabilities with C++ meta programming, Oct. 2011, 5 pages.
- Zhang et al., Demo: runtime MAC reconfiguration using a meta-compiler assisted toolchain, Aug. 2012, 2 pages.