Reducing load instructions via global data reordering
Abstract
A method for improving program performance including reordering a global data area of a program and for each load instruction referencing global variables within range of the immediate part of an add immediate instruction from a TOC anchor, replacing the load instruction with an add immediate instruction. The method may further include placing a TOC at the top, or within a predetermined distance from the top, of the global data area. The method may also include placing the global variables after the TOC, wherein more frequently referenced global variable are closer to the TOC than less frequently referenced global variables. Also, the method may further include placing in run-time order, groups of the global variables that frequently follow each other in run-time.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 32.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method for improving program performance, the method comprising the steps of: reordering global variables within a global data area of a program by moving global variables having addresses associated therewith in a Table of Contents (TOC) which addresses are more frequently referenced to be closer to a TOC anchor than global variables having addresses associated therewith in said TOC which addresses are less frequently referenced; and for each load instruction referencing global variables within range of the immediate part of an add immediate instruction from said TOC anchor, replacing said
- Claim 2Depends on #1
The method of claim 1 , further comprising the step of: placing said TOC at the top of said global data area.
- Claim 3Depends on #1
The method of claim 1 , further comprising the step of: placing said TOC within a predeter
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 32 total)
References Cited — Backward Prior Art (7)
Non-Patent Literature (2)
- Calder et al., "Cache-Conscious Data Placement," Proceedings of the Eighth International Conference on Architectural Support for Programming Languages and Operating Systems, ACM Press (Oct. 1998), pp. 139-149.
- Chow et al., "How Many Addressing Modes are Enough?," Proceedings of the Second International Conference on Architectual Support for Programming Languages and Operating Systems, IEEE Computer Society Press (Oct. 1987), pp. 117-121.