Patent ID: 7975128
Filing Date: 2011-07-05
Classification: G06F

Abstract:
1. A program conversion apparatus, stored in a computer, to convert an original program into a converted program that is executable by a processor, the computer including a memory, the program conversion apparatus comprising: an extractor, caused by the computer, to extract, from the original program, a variable to be stored in a register; a detector, caused by the computer, to detect a live range for the extracted variable; a first determiner, caused by the computer, to determine whether only one reference instruction is present in the live range, the reference instruction being an instruction to refer to the variable; a second determiner, caused by the computer, to determine whether a definition instruction and the reference instruction are intended for forwarding, the definition instruction being an instruction to define the variable; and a generator, caused by the computer, to generate the converted program including an inhibition instruction to inhibit writing to the register according to the definition instruction, when it is determined that only one reference instruction is present in the live range and that the reference instruction is intended for forwarding, wherein, the inhibition instruction includes: said generator is configured to add the first attribute change instruction and the second attribute change instruction to the original program to generate the converted program.