Patent · US Expired

Exception handling method and apparatus for use in program code conversion

US7353163B2 · kind B2 · utility

3Cited by
17References
15Claims
0Family size

Assignee

Inventors

Key dates

Filing dateApr 6, 2001
Grant dateApr 1, 2008
Priority date
Expiry dateSep 6, 2024

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06F9/45504
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

Abstract

A method of handling exceptions for use in an emulator (20) performing program code conversion. Registers (X) of a subject machine (11) being emulated (20) are represented by a pair of abstract registers (XA,XB) on the target machine (31), suitably using memory locations of the target machine and/or any available target registers. One of the pair (e.g., Reg XA) holds a definitive value at entry into a section (100) of subject code (10) while the other (e.g., Reg XB) holds a speculative value which is updated during translation and execution of that section of code. Exceptions are handled by recovering the conditions of the virtual subject machine (11) upon entry into the section of subject code (100) using the definitive version of each abstract register (i.e., Reg XA). Advantageously, the function of the pair of registers (XA,XB) is alternated upon successful completion of each section of subject code (100) such that a definitive version of each register is always available for exception handling while avoiding time consuming copy and storing operations.

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.