Method and apparatus for performing interpreter optimizations during program code conversion
Abstract
A translator apparatus is provided with both program code interpreting and translating functionality, where subject program code is interpreted rather than being translated in those situations where interpretation of the subject program code is determined to be more beneficial. The translator applies an interpreting algorithm to determine whether a basic block of subject program code should be interpreted or translated. A particular subject of instructions supported by the interpreter functionality is initially selected from an entire instruction set for the subject program code. A basic block will be interpreted 1) if all of the instructions within a basic block are determined to be within the subset of instructions supported by the interpreter functionality, and 2) if an execution count of the basic block is below a translation threshold. If either of these two conditions are not satisfied, then the basic block is translated by the translator
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 28 · Forward citations: 22.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of selectively interpreting or translating program code in a computing environment having a target processor and a memory coupled to the target processor, the program code comprising instructions from the instruction set of a subject processor, the method comprising: decoding said program code; applying an interpreting algorithm to identify whether said program code is interpretable by a simple interpreter, said simple interpreter incapable of interpreting a subset of instructions from the instruction set of the subject processor; if said program code contains only instructions in the
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 22 total)
References Cited — Backward Prior Art (28)
Non-Patent Literature (5)
- "Program of MacHack '96 (confirming the publication date of document D1) "'Online! XP002300340, Retrieved from the Internet: URL:www.machack.com/96/Sessions.html> 'retrieved on Oct. 12, 2004.
- Aho. Compilers: Principles, Techniques and Tools. pp. 463-473, 554-555 and 585-595.
- Altman et al, IBM Research Report, "BOA: The Architecture of a Binary Translation Processor", Dec; 16, 1999.
- Chung et al. "Performance Implication of Design Alternatives for Remote Procedure Call Stubs.".
- Cifuentes C et al: The design of a resourceable and retargetable binary translator: Reverse Engineering, 1999 Proceedings. Sixth Working Conference on Atlanta, GA, USA Oct. 6-8, 1999, Los Alamitos, CA, USA, IEEE Comput. Soc, US Oct. 6, 1999 (Oct. 6, 1999), pp. 280-291, XP010360228, ISBN: 0-7695-0303