Patents
US 8,458,674 B2#33789053 Most CitedActiveUnited States (USPTO)Utility

Method and apparatus for handling exceptions during binding to native code

3Forward Citations (#33789053 Global)
0.2/yrCitation Velocity (#31058815 Global)
1.00Citation PageRank (#41616120 Global)
42Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A target computing system performs program code conversion from subject code, executable by a subject computing architecture, into target code executable by the target computing system, and then executes the target code. The target system handles exceptions during binding to native code. Native code binding executes a portion of native code in place of translating a portion of the subject code into the target code. Upon an exception during execution of the portion of native code, the target system saves a target state representing a current point of execution for the portion of native code, and creates a subject state representing an emulated point of execution in the subject architecture. A subject exception handler handles the exception with reference to the subject state. Upon resuming execution from the exception using the subject state, the saved target state is restored to resume execution in the section of portion of native code.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 42 · Forward citations: 3.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method of handling an exception signal in a computing system, comprising the steps of: (a) performing program code conversion to convert subject code executable by a subject computing architecture into target code executable by the computing system; (b) executing a portion of native code which is native to the computing system in substitution for translating a portion of the subject code into the target code; (c) in response to an exception signal arising during execution of the portion of native code, performing the steps of: (i) saving a target state which represents a current point of exe

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (42)

PatentTitleYearCitations
WO 0,022,521 A1Program code conversion—37
JP 2000322269 AEmulation system—5
US 6,314,560 B1Method and apparatus for a translation system that aggressively optimizes and preserves full synchronous exception state200154
US 6,321,377 B1Method and apparatus automatic service of JIT compiler generated errors200136
US 2002032718 A1Method and apparatus for maintaining translated routine stack in a binary translation enviroment—108
US 2002092002 A1Method and apparatus for preserving precise exceptions in binary translated code—74
US 2002100030 A1Program code conversion—28
EP 1,316,882 A2System and method for emulating code—25
JP 2003196107 ASystem and method for integrating code to be emulated to native code—22
US 6,789,181 B1Safety net paradigm for managing two computer execution modes200431
US 2004181653 A1Variable state save formats based on operand size of state save instruction—8
US 6,810,476 B2Variable state save formats based on operand size of state save instruction200419
WO 2004/095264 A2Method and apparatus for performing interpreter optimizations during program code conversion—15
WO 2004/097631 A2Architecture for generating intermediate representations for program code conversion—16
US 2005015781 A1Method and apparatus for performing native binding—44
US 2005015758 A1Shared code caching method and apparatus for program code conversion—72
WO 2005/006106 A2Method and apparatus for performing adjustable precision exception handling—26
WO 2005/008478 A2Method and apparatus for performing native binding—29
WO 2004/095264 A3Method and apparatus for performing interpreter optimizations during program code conversion—1
US 2005086650 A1Transferring execution from one instruction stream to another—124
US 6,895,579 B2Method and apparatus for maintaining exception reporting for register promotion200511
US 6,907,519 B2Systems and methods for integrating emulated and native code200537
US 6,934,832 B1Exception mechanism for a computer2005101
WO 2005/006106 A3Method and apparatus for performing adjustable precision exception handling—1
WO 2005/008478 A3Method and apparatus for performing native binding—1
WO 2004/097631 A3Architecture for generating intermediate representations for program code conversion—2
US 7,047,394 B1Computer for execution of RISC and CISC instruction sets2006226

Non-Patent Literature (5)

  • Czajkowski et al., "Automated and Portable Native Code Isolation", Apr. 2001, Sun Microsystem, Inc., pp. 1-15; .
  • Czajkowski et al., "Automated and Portable Native Code Isolation", Apr. 2001, Sun Microsystem, Inc., pp. 1-15; <http://labs.oracle.com/techrep/2001/smli—tr-2001-96.pdf>.
  • International Search Report from International Application No. PCT/GB2007/050343 mailed Sep. 24, 2007.
  • Li et al., "JET-Exception Checking in the Java Native Interface", 2011 ACM, OOPSLA'11, Oct. 22-27, 2011, Portland, Oregon, USA, pp. 1-13; .
  • Li et al., "JET—Exception Checking in the Java Native Interface", 2011 ACM, OOPSLA'11, Oct. 22-27, 2011, Portland, Oregon, USA, pp. 1-13; <http://dl.acm.org/citation.cfm?id=2048066.2048095&coll=DL&dl=GUIDE&CFID=174032729&CFTOKEN=83806895>.