System, method and program product to optimize code during run time
Abstract
System, process and program product for optimizing a computer program during run time. During run time, a determination is made whether the computer program calls a method which includes a conditional evaluation of a variable which is fixed and the evaluation of the fixed variable does not result in anything productive being accomplished except to return to execution of the computer program. If so, the call to the method which includes the conditional evaluation is deleted from the computer program for subsequent iterations of the computer program. Consequently, the subsequent execution of the computer program will yield a same result as if the conditional evaluation was executed. If the evaluation of the fixed variable results in something productive being accomplished, the call to the method which includes the conditional evaluation is not deleted from the subsequent execution of the computer program.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 34 · Forward citations: 10.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A process for optimizing a computer program during run time, said computer program including a call to a first method, said first method including a call to a second method, said process comprising the steps of: during run time, a processor of a computer determining if said second method includes a conditional evaluation of a variable which is fixed such that the execution of said second method does not result in anything productive being accomplished except to return to said first method, and if so, deleting in said first method said call to said second method, and if not, not deleting said c
- Claim 2Depends on #1
A process as set forth in claim 1 wherein said first method also includes instructions to compute an argument required for said call to said second method, and said second method includes a conditional evaluation of a varia
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (10 of 10 total)
References Cited — Backward Prior Art (34)
Non-Patent Literature (5)
- Aho et al., "Compilers -Principles, Techniques and Tools". Addison Wesley Publishing Company. ISBN 0-201-10088-6., pp. 1-149.
- Aho et al., "Compilers -Principles, Techniques and Tools". Addison Wesley Publishing Company. ISBN 0-201-10088-6., pp. 1-3.
- Auslander et al (SIGPLAN Notices, vo. 31, No. 5, pp. 149-159, May 1996).
- Calder et al (Proceed of 13th Annual IEEE/ACM Int. Symp. On Microarchitecture, pp. 259-269, 1997).
- Hover et al., "Tail-Call Optimization Constant Folding and Propagation, and Dead-Code Eliminatioin", Dec. 11, 2009, retrieved from , total pp. 7.