Patents
US 8,769,509 B2#49999565 Most CitedActiveUnited States (USPTO)Utility

Methods and apparatus for preserving precise exceptions in code reordering by using control speculation

1Forward Citations (#49999565 Global)
0.1/yrCitation Velocity (#48909149 Global)
0.87Citation PageRank (#49714626 Global)
18Prior Art Cited
2Claims (2 Indep. · 0 Dep.)
0Drawings / Sheets

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)

  1. 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

  2. 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)

PatentTitleYearCitations
US 5,802,337 AMethod and apparatus for executing load instructions speculatively199826
US 6,247,172 B1Method for a translation system that aggressively optimizes and preserves full synchronous exception state200199
US 6,260,190 B1Unified compiler framework for control and data speculation with recovery code2001176
US 6,463,579 B1System and method for generating recovery code200235
US 6,487,716 B1Methods and apparatus for optimizing programs in the presence of exceptions200274
US 2003014737 A1Computer method and apparatus for safe instrumentation of reverse executable program modules—12
US 6,634,023 B1Compile method, exception handling method and computer200376
US 2004019768 A1Method and system for using dynamic, deferred operation information to control eager deferral of control-speculative loads—9
US 2004128658 A1Exception handling with stack trace cache—61
US 2005005265 A1Method and apparatus for performing adjustable precision exception handling—16
US 2005149913 A1Apparatus and methods to optimize code in view of masking status of exceptions—9
US 7,065,750 B2Method and apparatus for preserving precise exceptions in binary translated code200624
US 7,089,540 B2Compiling method with exception handling200617
US 7,103,880 B1Floating-point data speculation across a procedure call using an advanced load address table200616
US 7,103,882 B2Optimization apparatus, complier program, optimization method and recording medium200618
US 7,213,242 B2Run-time behavior preserving partial redundancy elimination200712
US 7,607,125 B2Programming language support for integrating undo and exception handling200913
US 7,685,579 B2Method and apparatus for performing adjustable precision exception handling20109

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.