Patent ID: 8291391

Claim:
A Java bytecode translating method comprising: a bytecode fetch step (S 1 10 ) that fetches a Java bytecode from a Java class file, in which the Java bytecode comprises an operation code field where an operation code is stored and an operand field where an operand is stored; a static field address detection and data processing step (S 140 ) which analyzes a constant pool by an operand of the fetched bytecode and adds a field offset of an object to be accessed and a static field address having a predetermined value, in the case that an operation code of the Java bytecode that has been fetched at the bytecode fetch step (S 110 ) is a static field access bytecode to gain access to a static field, to thus detect a first field address and gains access to a field according to the first field address to thus process data; a static field address storage step (S 150 ) that stores a first upper field address including upper bits among bits of the first field address detected in the static field address detection and data processing step (S 140 ) in a first storage portion, and which stores a first lower field address including remainder lower bits excluding the first upper field address among the bits of the first field address in the operand field; a static operation code translating step (S 160 ) that translates an operation code stored in the operation code field into user's predetermined new static field access operation code; a first field address creation step (S 240 ) that concatenates the first upper field address stored in the first storage portion and the first lower field address stored in the operand field of the fetched Java bytecode, to create a second field address, if the Java bytecode fetched in the bytecode fetch step is the Java bytecode having the operation code translated in the static operation code translating step; and a first data processing step (S 250 ) that gains access to the field according to the second field address and processes data.