Method and apparatus for selectively executing different executable code versions which are optimized in different ways
Abstract
One embodiment of the present invention provides a system that selectively executes different versions of executable code for the same source code. During operation, the system first receives an executable code module which includes two or more versions of executable code for the same source code, wherein the two or more versions of the executable code are optimized in different ways. Next, the system executes the executable code module by first evaluating a test condition, and subsequently executing a specific version of the executable code based on the outcome of the evaluation, so that the execution is optimized for the test condition.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 42.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for selectively executing different versions of executable code for the same source code, the method comprising: receiving an executable code module which includes two or more versions of executable code for the same source code, wherein the two or more versions are optimized in different ways; and executing the executable code module, wherein executing the executable code module involves: evaluating a test condition, wherein evaluating the test condition involves determining a temperature of a processor/core; and executing a specific version of the executable code based on the outcom
- Claim 2Depends on #1
The method of claim 1 , wherein evaluating the test condition involves executing a branch instruction in the executable code module, wherein the branch i
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 42 total)
References Cited — Backward Prior Art (16)
Non-Patent Literature (3)
- Diniz; "Dynamic Feedback: An Effective Technique for Adaptive Computing"; ACM; Jun. 1997.
- Diniz; Dynamic Feedback; ACM; Jun. 1997.
- Voss; A Framework for Remote Dynamic Program Optimization; ACM; Jul. 2000.