摘要 |
PROBLEM TO BE SOLVED: To provide a highly flexible compiler which allows a user to precisely control optimization by the compiler. SOLUTION: The compiler includes: an analysis part 110 for detecting instructions (option and pragma) from a user to the compiler 100; and an optimization part 120 or the like comprising a processing part (global area allocation part 121, software pipelining part 122, loop unrolling part 123, if conversion part 124 and pair instruction generation part 125) for performing individual optimization processing specified by the option and the pragma by the user. When the instruction on guaranteeing that the number of times of repetition of specified loop processing is a set of values equal to or larger than a certain specified value in a source program is detected, the loop unrolling part 123 performs the optimization processing of suppressing the generation of an escape code to be needed when the number of times of the repetition is zero when the guaranteed set of the values is the set of the values≥1. COPYRIGHT: (C)2010,JPO&INPIT
|