Method, system, program, and data structures for transforming an instruction in a first bit architecture to an instruction in a second bit architecture
First Claim
1. A method for transforming an instruction in a first bit architecture to an instruction in a second bit architecture that is executed in a computer system that is capable of processing instructions in both the first bit and second bit architectures, comprising:
- transforming code to an instruction in the first bit architecture having an operation code and at least one operand;
accessing a transform table including information for transforming a plurality of instructions in the first bit architecture to the second bit architecture, wherein the transform table indicates for each of a plurality of operation codes either information indicating to transform an instruction including the operation code in the first bit architecture or not to transform the instruction, wherein the transform table indicates that at least one instruction is not to be transformed from the first bit architecture to the second bit architecture, wherein the instruction in the first bit architecture that is not transformed as indicated in the transform table executes successfully in the computer system; and
transforming the instruction in the first bit architecture to a corresponding instruction in the second bit architecture if the transform table includes information indicating to transform the instruction in the first bit architecture, wherein the transformation is based on transformation operations that modify the instruction in the first bit architecture to generate the instruction in the second bit architecture.
1 Assignment
0 Petitions
Accused Products
Abstract
Disclosed is a method, system, program, and data structures for transforming an instruction in a first bit architecture, e.g., 32 bit, to an instruction in a second bit architecture, e.g., 64 bit. Code is transformed from an instruction in the first bit architecture having an operation code and at least one operand. A transform table is accessed including information for transforming the instruction in the first bit architecture to the second bit architecture. The instruction in the first bit architecture is transformed to a corresponding instruction in the second bit architecture if the transform table includes information indicating to modify the instruction in the first bit architecture. The transformation is based on transformation operations that modify the instruction in the first bit architecture to generate the instruction in the second bit architecture.
33 Citations
36 Claims
-
1. A method for transforming an instruction in a first bit architecture to an instruction in a second bit architecture that is executed in a computer system that is capable of processing instructions in both the first bit and second bit architectures, comprising:
-
transforming code to an instruction in the first bit architecture having an operation code and at least one operand;
accessing a transform table including information for transforming a plurality of instructions in the first bit architecture to the second bit architecture, wherein the transform table indicates for each of a plurality of operation codes either information indicating to transform an instruction including the operation code in the first bit architecture or not to transform the instruction, wherein the transform table indicates that at least one instruction is not to be transformed from the first bit architecture to the second bit architecture, wherein the instruction in the first bit architecture that is not transformed as indicated in the transform table executes successfully in the computer system; and
transforming the instruction in the first bit architecture to a corresponding instruction in the second bit architecture if the transform table includes information indicating to transform the instruction in the first bit architecture, wherein the transformation is based on transformation operations that modify the instruction in the first bit architecture to generate the instruction in the second bit architecture. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
determining one entry in the operand table having operand bit architecture types that match the bit architecture types of each operand in the instruction in the first bit architecture; and
executing the at least one transformation operation to transform the instruction in the first bit architecture to the second bit architecture.
-
-
4. The method of claim 3, wherein determining the bit architecture types of each operand in the instruction in the first bit architecture comprises processing a dictionary including information on the properties of each instruction in the first bit architecture.
-
5. The method of claim 3, wherein executing the at least one transformation operation includes changing a name of the operation code to indicate that the operation code is in the second bit architecture.
-
6. The method of claim 3, wherein executing the at least one transformation operation includes updating a register status table including information on each register including an operand to indicate that the register including one operand in the instruction subject to the transformation is in the second bit architecture.
-
7. The method of claim 6, wherein the register status table is updated to indicate that the register including one operand in the instruction subject to the transformation is in the second bit architecture when the operand in the instruction subject to the transformation is in the first bit architecture and another operand in the instruction subject to the transformation is in the second bit architecture.
-
8. The method of claim 3, wherein each entry in the operand table includes a pointer to a replacement table including the at least one transformation operation to transform the instruction in the first bit architecture to the second bit architecture.
-
9. The method of claim 1, wherein the instruction in the first bit architecture is capable of having operands in both the first bit architecture and the second bit architecture.
-
10. The method of claim 1, wherein the first bit architecture is a 32 bit architecture and the second bit architecture is a 64 bit architecture.
-
11. A system for transforming an instruction in a first bit architecture to an instruction in a second bit architecture, wherein the system is capable of processing instructions in both the first bit and second bit architectures, comprising:
-
means for transforming code to an instruction in the first bit architecture having an operation code and at least one operand;
means for accessing a transform table including information for transforming a plurality of instructions in the first bit architecture to the second bit architecture, wherein the transform table indicates for each of a plurality of operation codes either information indicating to transform an instruction including the operation code in the first bit architecture or not to transform the instruction wherein the transform table indicates that at least one instruction is not to be transformed from the first bit architecture to the second bit architecture, wherein the instruction in the first bit architecture that is not transformed as indicated in the transform table executes successfully in the computer system; and
means for transforming the instruction in the first bit architecture to a corresponding instruction in the second bit architecture if the transform table includes information indicating to transform the instruction in the first bit architecture, wherein the transformation is based on transformation operations that modify the instruction in the first bit architecture to generate the instruction in the second bit architecture. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
means for determining one entry in the operand table having operand bit architecture types that match the bit architecture types of each operand in the instruction in the first bit architecture; and
means for executing the at least one transformation operation to transform the instruction in the first bit architecture to the second bit architecture.
-
-
14. The system of claim 13, wherein the means for determining the bit architecture types of each operand in the instruction in the first bit architecture comprises processing a dictionary including information on the properties of each instruction in the first bit architecture.
-
15. The system of claim 13, wherein the means for executing the at least one transformation operation includes changing a name of the operation code to indicate that the operation code is in the second bit architecture.
-
16. The system of claim 13, wherein the means for executing the at least one transformation operation includes updating a register status table including information on each register including an operand to indicate that the register including one operand in the instruction subject to the transformation is in the second bit architecture.
-
17. The system of claim 16, wherein the register status table is updated to indicate that the register including one operand in the instruction subject to the transformation is in the second bit architecture when the operand in the instruction subject to the transformation is in the first bit architecture and another operand in the instruction subject to the transformation is in the second bit architecture.
-
18. The system of claim 13, wherein each entry in the operand table includes a pointer to a replacement table including the at least one transformation operation to transform the instruction in the first bit architecture to the second bit architecture.
-
19. The system of claim 13, wherein the instruction in the first bit architecture is capable of having operands in both the first bit architecture and the second bit architecture.
-
20. The system of claim 13, wherein the first bit architecture is a 32 bit architecture and the second bit architecture is a 64 bit architecture.
-
21. An article of manufacture for use in transforming an instruction in a first bit architecture to an instruction in a second bit architecture that is executed in a computer system that is capable of processing instructions in both the first bit and second bit architectures, the article of manufacture comprising a computer usable media including at least one computer program embedded therein that is capable of causing the computer to perform:
-
transforming code to an instruction in the first bit architecture having an operation code and at least one operand;
accessing a transform table including information for transforming a plurality of instructions in the first bit architecture to the second bit architecture, wherein the transform table indicates for each of a plurality of operation codes information indicating to transform an instruction including the operation code in the first bit architecture or not to transform the instruction, wherein the transform table indicates that at least one instruction is not to be transformed from the first bit architecture to the second bit architecture, wherein the instruction in the first bit architecture that is not transformed as indicated in the transform table executes successfully in the computer system; and
transforming the instruction in the first bit architecture to a corresponding instruction in the second bit architecture if the transform table includes information indicating to transform the instruction in the first bit architecture, wherein the transformation is based on transformation operations that modify the instruction in the first bit architecture to generate the instruction in the second bit architecture. - View Dependent Claims (22, 23, 24, 25, 26, 27, 28, 29, 30)
determining one entry in the operand table having operand bit architecture types that match the bit architecture types of each operand in the instruction in the first bit architecture; and
executing the at least one transformation operation to transform the instruction in the first bit architecture to the second bit architecture.
-
-
24. The article of manufacture of claim 23, wherein determining the bit architecture types of each operand in the instruction in the first bit architecture comprises processing a dictionary including information on the properties of each instruction in the first bit architecture.
-
25. The article of manufacture of claim 23, wherein executing the at least one transformation operation includes changing a name of the operation code to indicate that the operation code is in the second bit architecture.
-
26. The article of manufacture of claim 23, wherein executing the at least one transformation operation includes updating a register status table including information on each register including an operand to indicate that the register including one operand in the instruction subject to the transformation is in the second bit architecture.
-
27. The article of manufacture of claim 26, wherein the register status table is updated to indicate that the register including one operand in the instruction subject to the transformation is in the second bit architecture when the operand in the instruction subject to the transformation is in the first bit architecture and another operand in the instruction subject to the transformation is in the second bit architecture.
-
28. The article of manufacture of claim 23, wherein each entry in the operand table includes a pointer to a replacement table including the at least one transformation operation to transform the instruction in the first bit architecture to the second bit architecture.
-
29. The article of manufacture of claim 21, wherein the instruction in the first bit architecture is capable of having operands in both the first bit architecture and the second bit architecture.
-
30. The article of manufacture of claim 21, wherein the first bit architecture is a 32 bit architecture and the second bit architecture is a 64 bit architecture.
-
31. A computer readable data transmission medium containing at least one data structure for use in transforming an instruction in a first bit architecture to an instruction in a second bit architecture that is executed in a computer system that is capable of processing instructions in both the first bit and second bit architectures, comprising:
-
at least one transform table including information for transforming an instruction in the first bit architecture to the second bit architecture, wherein the transform table indicates for each of a plurality of operation codes information indicating to transform an instruction including the operation code in the first bit architecture or not to transform the instruction, wherein the transform table indicates that at least one instruction is not to be transformed from the first bit architecture to the second bit architecture, wherein the instruction in the first bit architecture is transformed to a corresponding instruction in the second bit architecture if the transform table includes information indicating to modify the instruction in the first bit architecture, and wherein the instruction in the first bit architecture that is not transformed as indicated in the transform table executes successfully in the computer system; and
transformation operations indicating operations to perform to modify the instruction in the first bit architecture to generate the instruction in the second bit architecture. - View Dependent Claims (32, 33, 34, 35, 36)
at least one operand table, wherein the transform table includes one entry for each operation code, wherein the entry for each operation code is capable of including a pointer to one operand table if a transformation is to be performed, wherein no transformation is performed if the entry for the operation code does not include a pointer to one operand table.
-
-
33. The computer readable data transmission medium of claim 32, wherein the operand table includes an entry for each possible combination of operand bit architecture types, wherein each entry in the operand table indicates at least one transformation operation, wherein the operand table includes one entry having operand bit architecture types that match the bit architecture types of each operand in the instruction in the first bit architecture, wherein the at least one transformation operation is executed to transform the instruction in the first bit architecture to the second bit architecture.
-
34. The computer readable data transmission medium of claim 33, further comprising a dictionary including information on the properties of each instruction in the first bit architecture, wherein determining the bit architecture types of each operand in the instruction in the first bit architecture comprises processing the dictionary to determine the properties of each instruction.
-
35. The computer readable data transmission medium of claim 33, further comprising a register status table including information on each register including an operand to indicate that the register including one operand in the instruction subject to the transformation is in the second bit architecture, wherein the register status table is updated when executing the at least one transformation operation.
-
36. The computer readable data transmission medium of claim 33, wherein each entry in the operand table includes a pointer to a replacement table including the at least one transformation operation to transform the instruction in the first bit architecture to the second bit architecture.
Specification