Expression reduction during compilation through routine cloning
Abstract
An apparatus, program product, and method utilize routine cloning to optimize the performance of a compiled computer program. Within a compiled representation of a computer program, an implementation of a called routine is generated that has the same external response as the original routine, but is modified from the original routine to calculate the result of an expression, which was originally provided as an input parameter to the routine, within the body of the routine. In addition, the signature of the new implementation of the routine is modified to accept, in lieu of the input parameter that originally received the result of the expression, one or more input parameters representative of the argument(s) to be operated upon by the expression.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 17.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method of compiling a computer program, the method comprising: (a) identifying in a first representation of the computer program a routine call that passes an expression as an input parameter to a routine in the first representation of the computer program; (b) generating within a second representation of the computer program an implementation of the routine that calculates the expression; and (c) generating within the second representation of the computer program an implementation of the routine call that passes at least one argument for the expression to the implementation of the routine.
- Claim 2Depends on #1
The method of claim 1 , wherein the first representation of the computer program comprises an intermediate representation, and wherein the second representation of the computer program comprises a revised representation.
- Claim 3Depends on #2
The method of claim 2 , wherei
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 17 total)
References Cited — Backward Prior Art (4)
Non-Patent Literature (1)
- Cooper et al., "Procedure Cloning", IEEE, pp.: 96-105, 1992.