摘要 |
PROBLEM TO BE SOLVED: To obtain a compiler for generating an alias check instruction for checking an alias state and arranging a load instruction before a store instruction, and to provide a processor having the alias instruction. SOLUTION: This complier 1 is provided with an instruction analyzing part 11 for generating an intermediate code from a source program, an instruction optimizing part 12 for deleting the surplus instruction of the generated intermediate code, and an instruction converting part 13 for converting the instruction into an executable target program. The instruction optimizing part 12 is provided with a store load instruction extracting means for extracting the set of a store instruction and a load instruction from the intermediate code generated by the instruction analyzing part 11, an alias check instruction generating means for generating an alias check instruction for detecting the inter-operand address overlap of the extracted load instruction and store instruction at the time of execution, and an instruction arranging means for re-arranging instruction strings in the order of the alias check instruction, the load instruction, and the store instruction and arranging a conditional instruction at the original position of the load instruction.
|