Method and apparatus for executing instructions of java virtual machine and transforming bytecode
First Claim
Patent Images
1. A method of executing an instruction of a Java virtual machine, the method comprising:
- extracting a bytecode of a method of a Java class stored in a memory;
transforming the bytecode into a second code which comprises information regarding a location of an opcode handler and uses 16-bit memory elements, the opcode handler performing an operation corresponding to an opcode included in the bytecode; and
executing the second code, wherein the execution of the second code comprises;
linking the second code to a runtime state;
initializing a result of the linking to be executable; and
executing a result of the initializing, andwherein the transforming of the bytecode comprises transforming an operand of the bytecode into a second operand using 16-bit memory elements by combining consecutive bytes constituting the operand.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and apparatus for executing an instruction of a Java virtual machine are provided. The method includes extracting a bytecode of a method of a Java class, transforming the bytecode into a second code which comprises information regarding a location of an opcode handler and uses 16-bit memory elements, the opcode handler performing an operation corresponding to an opcode included in the bytecode, and executing the second code.
-
Citations
15 Claims
-
1. A method of executing an instruction of a Java virtual machine, the method comprising:
-
extracting a bytecode of a method of a Java class stored in a memory; transforming the bytecode into a second code which comprises information regarding a location of an opcode handler and uses 16-bit memory elements, the opcode handler performing an operation corresponding to an opcode included in the bytecode; and executing the second code, wherein the execution of the second code comprises;
linking the second code to a runtime state;initializing a result of the linking to be executable; and executing a result of the initializing, and wherein the transforming of the bytecode comprises transforming an operand of the bytecode into a second operand using 16-bit memory elements by combining consecutive bytes constituting the operand. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A Java virtual machine comprising:
-
a bytecode extraction unit which extracts a bytecode of a method of a Java class; a second code transformation unit which transforms the bytecode into a second code which comprises information regarding a location of an opcode handler and uses 16-bit memory elements, the opcode handler performing an operation corresponding to an opcode included in the bytecode; an instruction execution unit which executes the second code;
a linking unit which links the second code into a runtime state; and
an initialization unit which initializes the linked second code to be executable,wherein the bytecode extraction unit, the second code transformation unit, and the instruction execution unit are stored in a memory and execute on a processor, and wherein the second code transformation unit transforms an operand of the bytecode into a second operand using 16-bit memory elements by combining consecutive bytes constituting the operand. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A computer readable medium having a computer readable program recorded therein, the program for executing a method of executing an instruction of a Java virtual machine, the method comprising:
-
extracting a bytecode of a method of a Java class; transforming the bytecode into a second code which comprises information regarding a location of an opcode handler and uses 16-bit memory elements, the opcode handler performing an operation corresponding to an opcode included in the bytecode; and executing the second code, wherein the execution of the second code comprises;
linking the second code to a runtime state;initializing a result of the linking to be executable; and executing a result of the initializing, and wherein the transforming of the bytecode comprises transforming an operand of the bytecode into a second operand using 16-bit memory elements by combining consecutive bytes constituting the operand.
-
Specification