# US 8,578,351 B2 · Hybrid mechanism for more efficient emulation and method therefor

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 8,578,351 B2
- Document ID: US8578351B2
- Status: Granted
- Kind: B2
- Application number: 13/311,858
- Filed: 2011-12-06
- Published: 2012-04-12
- Granted: 2013-11-05
- Earliest claimed: 2002-09-17
- Assignees: International Business Machines Corporation
- Applicants: Ravi Nair; John Kevin O'Brien; Kathryn Mary O'Brien; Peter Howland Oden; Daniel Arthur Prener
- Inventors: Ravi Nair; John Kevin O'Brien; Kathryn Mary O'Brien; Peter Howland Oden; Daniel Arthur Prener
- Web page: https://patentgrep.com/patent/US8578351B2

## CPC

- G06F 9/45504: {Abstract machines for program code execution, e.g. Java virtual machine [JVM], interpreters or emulators}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In a host system, a method for using instruction scheduling to efficiently emulate the operation of a target computing system includes preparing, on the host system, an instruction sequence to interpret an instruction written for execution on the target computing system. An instruction scheduling on the instruction sequence is performed, to achieve an efficient instruction level parallelism, for the host system. A separate and independent instruction sequence is inserted, which, when executed simultaneously with the instruction sequence, performs to copy to a separate location a minimum instruction sequence necessary to execute an intent of an interpreted target instruction, the interpreted target instruction being a translation; and modifies the interpreter code such that a next interpretation of the target instruction results in execution of the translated version, thereby removing execution of interpreter overhead.

## Claims

### Claim 1

In a host system, a method for using instruction scheduling to efficiently emulate the operation of a target computing system, said method comprising:
(a) preparing, on the host system, an instruction sequence to interpret an instruction written for execution on the target computing system;
(b) performing instruction scheduling on the instruction sequence, to achieve an efficient instruction level parallelism, for the host system; and
(c) inserting, a separate and independent instruction sequence, which, when executed simultaneously with the instruction sequence produced by (b), performs the following:
i) copies to a separate location a minimum instruction sequence necessary to execute an intent of an interpreted target instruction, said interpreted target instruction being a translation; and
ii) modifies the interpreter code such that a next interpretation of said target instruction results in execution of the translated version, thereby removing execution of interpreter overhead.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
(d) executing, on the host system, a result of performing (c) above.

### Claim 3 (depends on 1)

The method of claim 1, wherein the instruction scheduling of (b) is performed with respect to a very long instruction word (VLIW) architecture of said target computing system.

### Claim 4 (depends on 1)

The method of claim 1, wherein the interpretation is conducted with reference to a stream of bytecodes of the target computing system.

### Claim 5 (depends on 4)

The method of claim 4, wherein said bytecodes comprise Java® bytecodes.

### Claim 6

A host system for using instruction scheduling to efficiently emulate the operation of a target computing system, said host system comprising a memory having tangibly embodied therein a set of instructions for:
(a) an interpreter for preparing, on the host system, an instruction sequence to interpret an instruction written for execution on the target computing system;
(b) a scheduler for performing instruction scheduling on the instruction sequence, to achieve an efficient instruction level parallelism as represented by pipeline delay slots, for the host system; and
(c) a translator for inserting, in the pipeline delay slots, a separate and independent instruction sequence, which, when executed simultaneously with the instruction sequence produced by (b), performs the following:
i) copies to a separate location a minimum instruction sequence necessary to execute an intent of an interpreted target instruction, said interpreted target instruction being a translation; and
ii) modifies the interpreter code such that a next execution of said target instruction results in execution of the translated version, thereby removing execution of interpreter overhead.

### Claim 7

A non-transitory storage medium tangibly embodying a program of machine-readable instructions executable by a digital processing apparatus to perform a method of, in a host system, using instruction scheduling to efficiently emulate the operation of a target computing system, said method comprising:
(a) preparing, on the host system, an instruction sequence to interpret an instruction written for execution on the target computing system;
(b) performing instruction scheduling on the instruction sequence, to achieve an efficient instruction level parallelism, for the host system; and
(c) inserting a separate and independent instruction sequence, which, when executed simultaneously with the instruction sequence produced by (b), performs the following:
i) copies to a separate location a minimum instruction sequence necessary to execute an intent of an interpreted target instruction, said interpreted target instruction being a translation; and
ii) modifies the interpreter code such that a next interpretation of said target instruction results in execution of the translated version, thereby removing execution of interpreter overhead.
