摘要 |
<P>PROBLEM TO BE SOLVED: To provide an apparatus and method in which a binary string composed of a plurality of instructions including a function call can be dynamically rewritten. <P>SOLUTION: An apparatus is provided which includes a transactional memory that enables exclusive control of a transaction. The apparatus comprises a first code generator 200 which interprets a program and generates a first code in which a starting instruction to start a transaction and an ending instruction to end the transaction are inserted before and after an instruction string composed of a plurality of instructions for executing designated processing in the program, a second code generator 201 which generates a second code using a plurality of instructions in predetermined timing in response to the designated processing, and a code writer 202 which overwrites an instruction string of the first code with the second code or writes the second code into a part of the first code, within the transaction. <P>COPYRIGHT: (C)2012,JPO&INPIT |