摘要 |
PROBLEM TO BE SOLVED: To improve execution efficiency of branch processing in a processor.SOLUTION: A compilation device 10 detects, from a code 13, a plurality of branch commands with same jump destinations, for performing branch processing according to a result of comparison operation of respective integer numbers as targets. The compilation device 10 converts the plurality of branch commands into a conversion command group, the number of branch commands of which is less than the number of the plurality of branch commands, using a logical instruction and an arithmetic instruction. When the cycle number of the processing based on the conversion command group is less than the cycle number of the processing based on the plurality of branch commands, the compilation device 10 generates a code 14 using the conversion command group. |