Patent ID: 8181169

Claim:
A compiler for setting a computational capability to a central processing unit, the compiler comprising: a processor device configured to perform: determining the computational capability based on an execution program to be executed by the central processing unit of which computational capability is rendered variable in the course of execution, said execution time measurement unit for changing the computational capability of the central processing unit every time each of a plurality of program areas included in the execution program is executed while the execution program is being executed, and said execution time measurement unit for measuring the execution time for each of the plurality of program areas; deciding an optimal computational capability, which is equivalent to a particular computational capability required to execute a program area using the central processing unit, based on the execution time for each of the computational capabilities measured for respective program areas; and setting the optimal computational capability for executing the program area, to be used on condition of executing the program area again in the course of executing the execution program, for each of the program areas; and for each of the program areas, modifying the computational capability of the central processing unit on condition of executing the program area again, on the condition that execution time used for executing the program area at a normal computational capability preset to the central processing unit is longer than standard time which is determined based on time required for modifying the computational capability.