Method and apparatus for compiling computer programs with interprocedural register allocation
Abstract
Optimization techniques are implemented by means of a program analyzer (16) used in connection with a program compiler (12) to optimize usage of limited register resources in a computer processor. The first optimization technique, called interprocedural global variable promotion allows the global variables (g1,g2,g3) of a program to be accessed in common registers (110,113) across a plurality of procedures. Moreover, a single common register can be used for different global variables in distinct regions of a program call graph (130). This is realized by identifying subgraphs of the program call graph (130) called webs (150,152,154) where the variable is used. The second optimization technique, called spill code motion, involves the identification of regions of the call graph (130) called clusters (158,160,162) that facilitate the movement of spill instructions to procedures which are executed relatively less often. This decreases the overhead of register saves and restores which must be executed for procedure calls.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 0 · Forward citations: 4.
Claims (0)
No claim text indexed for this record.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (4 of 4 total)
References Cited — Backward Prior Art (0)
No backward patent references recorded.
Non-Patent Literature (4)
- ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS vol. 8, no. 4, October 1986, NEW YORK US pages 491 - 523; KEITH D. COOPER ET AL.: 'The Impact of Interprocedural Analysis and Optimization in the Rn Programming Environment'
- PROCEEDINGS OF THE ACM SIGPLAN'90 CONFERENCE ON PROGRAMMING LANGUAGES DESIGN AND IMPLEMENTATION 20 June 1990, NEW YORK US pages 28 - 39; VATSA SANTHANAM ET AL.: 'Register Allocation Across Procedure and Module Boundaries'
- SIGPLAN NOTICES vol. 21, no. 7, July 1986, NEW YORK US pages 264 - 275; DAVID W. WALL: 'Global Register Allocation at Link Time'
- SIGPLAN NOTICES vol. 23, no. 7, July 1988, NEW YORK US pages 85 - 94; FRED C. CHOW: 'Minimizing Register Usage Penalty at Procedure Calls'