Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Binary translation method using intermediate command set

An intermediate instruction, binary technology, applied in the field of binary translation, can solve the problem that the intermediate language is not completely suitable for the application environment of binary translation, and achieve the effect of reducing complexity, optimizing system structure, and optimizing system performance

Inactive Publication Date: 2009-02-18
SHANGHAI JIAO TONG UNIV
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] If you use an existing intermediate language in binary translation, you need to consider its adaptability to the new environment - including both the front-end language and the back-end language; you need to consider the cost of porting and reusing existing A trade-off between the overhead inherent in design and code; existing intermediate languages ​​are designed for compilers, where the source language is a high-level programming language and the target language is machine language, whereas in binary translation, the source and target The language is all machine language, so the intermediate language should be a machine-level language, so the existing intermediate language is not completely suitable for the application environment of binary translation

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to better understand the technical solution of the present invention, the following specific examples are used for further description. The following examples are not intended to limit the present invention.

[0027] When using the intermediate instruction set to realize the function of the source machine instruction, it is necessary to accurately understand the semantics of the source machine instruction and what results will be produced by the operation of the source machine instruction. The intermediate instruction should be able to express all the results generated by the source machine instruction. The intermediate instruction set contains more than 40 most commonly used instructions in various machine instruction sets. For these source machine instructions, they only need to be directly mapped to intermediate instructions; the remaining relatively uncommon source machine instructions may be simulated with multiple intermediate instructions, or Use the CAL...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a binary translation method which uses the intermediate instruction set; a set of intermediate instruction set is designed as an intermediate level which is used during translating one machinery directive into another machinery directive, and can effectively separate the source machine from the target machine; intermediate instruction set includes basic instructions matched with a mainstream machinery instruction set; the basic instructions is divided into mapping instructions of the register state, memory visit instructions, data moving instructions, computing instruction, as well as control, transfer and special instructions; when the machinery instructions needs translating to intermediate instruction, common instructions of the source machine can be directly mapped to a piece of intermediate instruction; while strange instructions can be translated into a plurality of intermediate instructions or can be simulated by C function; through adopting the intermediate instruction set, the invention can correctly shown the instructions of machine with various system structures, and can greatly reduce the complexity of the binary translation machine which can support multi-platform of source and target machines, thereby realizing the redirection of the binary translation machine, and playing a very important role of optimizing the system structure, as well as the system performance of the binary translation machine.

Description

technical field [0001] The invention relates to a binary translation method using an intermediate instruction set, which can translate one physical machine instruction into another physical machine instruction by using a set of intermediate instruction sets for binary translation. The invention belongs to the technical field of binary translation. Background technique [0002] Binary translation is a simulation technology that involves two machine platforms, "Source" and "Target", so the binary translator has a strong dependence on the machine platform, which poses a challenge to the portability of the basic platform. Higher requirements, redirectability is one of them. Redirectability refers to the support of the basic platform for multiple source machines and target machines, and can be easily transplanted to new machine platforms. The intermediate instructions effectively separate the source machine and the target machine, and are reconfigurable. The essential. In a bi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/45
Inventor 管海兵梁阿磊包云程
Owner SHANGHAI JIAO TONG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products