×

Program optimizing apparatus, program optimizing method, and program optimizing article of manufacture

  • US 8,990,786 B2
  • Filed: 11/30/2011
  • Issued: 03/24/2015
  • Est. Priority Date: 12/15/2010
  • Status: Active Grant
First Claim
Patent Images

1. A program optimizing apparatus including a non-transitory transactional memory enabling exclusive control to execute a transaction, comprising:

  • a first code generating unit configured to interpret a program, and to generate a first code in which a begin instruction to begin the transaction and an end instruction to commit the transaction are inserted before and after an instruction sequence including a plurality of instructions to execute a designated processing in the program;

    a second code generating unit configured to generate a second code at a predetermined timing by using the plurality of instructions according to the designated processing; and

    a code write unit configured to overwrite the instruction sequence of the first code with the second code or to write the second code to a part of the first code in the transaction,wherein the designated processing is a function call processing, and the plurality of instructions include a set instruction to set an argument, a call instruction to call a function, and a return instruction to read a return value,wherein the predetermined timing is a timing of an interpretation of a called function during execution of the program,wherein in response to the interpretation of the called function, the second code generating unit generates the second code by replacing the call instruction in the instruction sequence with an instruction to read a value in the called function, by changing a parameter in the instruction to read the value, which is placed by the replacement, and then by deleting an unnecessary instruction group including the set instruction and the return instruction in the instruction sequence.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×