Alias-free test for dynamic array structures
Abstract
An apparatus, method, and program product for optimizing code that contains dynamically-allocated memory. The aliasing behavior of internal pointers of dynamically-allocated memory is used to disambiguate memory accesses and to eliminate false data dependencies. It is determined whether a dynamically-allocated array will behave like a statically-allocated array throughout the entire program execution once it has been allocated. This determination is used to improve the instruction scheduling efficiency, which yields better performance.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 35 · Forward citations: 19.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method, comprising: for every assignment statement in source code, determining a dynamic memory-allocation statement in the source code to which an assignee in the respective assignment statement refers; when the respective assignment statement does nor allocate memory, marking the respective dynamic memory-allocation statement as modified; and when the assignment statement does allocate memory, refraining from marking the respective dynamic memory-allocation statement as modified.
- Claim 2Depends on #1
The method of claim 1 , further comprising: for every query on a dynamic array reference in the source code and for each level of internal pointers in a dynamic array associated with the query, determining whether the respective dynamic memory-allocation statement is marked as modified.
- Claim 3Depends on #2
The method of claim 2 , further comprising: when none of the respe
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 19 total)
References Cited — Backward Prior Art (35)
Non-Patent Literature (5)
- TITLE: Alias Analysis of Executable Code, author: Debray et al, ACM, 1998.*
- TITLE: An Integrated Memory Management Scheme For Dynamic Alias Resolution, author: Chiueh, ACM, 1991.
- TITLE: An Integrated Memory Management Scheme for Dynamic Alias Resolution, author: Tzi-cker Chiueh, ACM, 1991.*
- TITLE: Dynamic Memory Allocation in Computer Simulation, author: Nielson et al, ACM, Nov. 1997.*
- TITLE: Fast Interprocedural Alias Analysis, author: Cooper et al, ACM, 1989.*