Method and apparatus for translating between source and target code
First Claim
Patent Images
1. A method for translating a source file for a source processing unit to a target file for a target Processing unit, the method comprising:
- reading in a source instruction;
matching an opcode of a source instruction to an opcode of a target instruction by comparing the source opcode to possible target opcodes;
converting the operand of the source instruction by comparing the operand of the source instruction represented by a generic expression to the generic expression related to a target operand and combining the target opcode and the target operand to form a translated target instruction.
0 Assignments
0 Petitions
Accused Products
Abstract
An interactive translation system (10) includes a front end (40), a back end (42), and a user interface (16). The front end (40) is operable to identify source elements (86) in a source file (24). The back end (42) is operable to generate a translation file having translation elements corresponding to translation of said identified source elements (86) and having an interface (16) for receiving inputs for modifying said translation.
-
Citations
13 Claims
-
1. A method for translating a source file for a source processing unit to a target file for a target Processing unit, the method comprising:
-
reading in a source instruction;
matching an opcode of a source instruction to an opcode of a target instruction by comparing the source opcode to possible target opcodes;
converting the operand of the source instruction by comparing the operand of the source instruction represented by a generic expression to the generic expression related to a target operand and combining the target opcode and the target operand to form a translated target instruction. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A system for translating a source instruction for a source processing unit into a target instruction for a target processing unit, the system comprising:
-
a translator operable to perform context-based translation including;
a translation machine description operable to store a list of source opcodes and a corresponding list of target opcodes;
a source description having a list of source opcodes and a list of source operands associated with a generic representation of the source operands and a target description having a list of target opcodes and a list of target operands associated with a generic representation of the target operands, wherein the translator is operable to receive a source instruction, utilize the translation machine description, source description, and target description to translate the source instruction into the target instruction. - View Dependent Claims (10, 11, 12, 13)
-
Specification