Methods and apparatus for preserving precise exceptions in code reordering by using control speculation
Abstract
Methods and apparatus for preserving precise exceptions in code reordering by using control speculation are disclosed. A disclosed system uses a control speculation module to reorder instructions within an application program and preserve precise exceptions. Instructions, excepting and non-excepting, can be reordered by the control speculation module if the instructions meet certain conditions. When an excepting instruction is reordered, a check instruction is inserted into the program execution path and a recovery block is generated. The check instruction determines if the reordered excepting instruction actually needs to generate an exception. The recovery block contains instructions to revert the effects of code reordering. If the check instruction detects the need for an exception, the recovery block is executed to restore the architectural state of the processor and the exception is handled.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 1.
Claims (2 — 2 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of preserving exceptions in code reordering, the method comprising: determining if a first instruction of a plurality of instructions is an excepting instruction; determining if the first instruction is to be moved across a check instruction to an execution location that is before the check instruction; determining, with a processor, a second instruction in the plurality of instructions that computes a previous value of a target register associated with the first instruction when (1) the first instruction is not an excepting instruction and (2) the first instruction is to be moved acr
- Claim 2Independent Claim
A m
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
References Cited — Backward Prior Art (18)
Non-Patent Literature (5)
- Bich C. Le, An Out-of-Order Execution Technique for Runtime Binary Translators, Hewlett Packard Company (1998) 8 pages.
- Erik M. Nystrom et al., Code Reordering and Speculation Support for Dynamic Optimization Systems, University of Illinois, Urbana-Champaign (2001) 12 pages.
- Intel® Itanium® Architecture Software Developer's Manual, vol. 3: Instruction Set Reference, Revision 2.1, Oct. 2002, Document No. 245319-004, 958 pages.
- Kemal Ebciogul and Erik R. Altman, Daisy: Dynamic Compilation for 100% Architectural Compatibility, IBM Research Division (Aug. 5, 1996) 84 pages.
- Ogasawara et al., A study of exception handling and its dynamic optimization in Java, Nov. 2001, 13 pages.