Exception handling method and apparatus for use in program code conversion
AssigneeTransitive Limited
InventorsAlasdair Rawsthorne, John H. Sandham, Jason Souloglou
Life of this patent
Estimating the term…
Loading patent…
AssigneeTransitive Limited
InventorsAlasdair Rawsthorne, John H. Sandham, Jason Souloglou
Estimating the term…
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.
A method of representing a subject register in an emulator, the method comprising the steps of:
A method for use in handling exceptions by an emulator performing program code conversion between subject code suitable for a subject processor and target code suitable for a target processor, the method comprising the steps of:
An emulator apparatus, comprising:
An emulator apparatus for performing program code conversion between subject code suitable for a subject processor and target codes suitable for a target processor, the emulator apparatus comprising:
A computer program product containing computer readable instructions for performing a method of representing a subject register in an emulator, the method comprising the steps of:
A computer program product containing computer readable instructions for performing program code conversion between subject code suitable for a subject processor and target codes suitable for a target processor, the method comprising the steps of:
Dependencies are inferred from the claim text.