摘要 |
PROBLEM TO BE SOLVED: To provide a compilation method, a compilation program and a compilation device which can reduce execution time of a program without increasing a burden on a programmer.SOLUTION: A compilation method of a program performs the steps of: extracting an array in a source program; calculating a first access frequency of access to main memory by an arithmetic device when a computer allocates the extracted array on the main memory and executes the program; calculating a second access frequency of access to the main memory by the arithmetic device when the computer allocates the extracted array on a temporary storage device and executes the program; comparing the first access frequency with the second access frequency; and compiling the source program so that the computer allocates the array on the temporary storage device and executes the program when the second access frequency is less than the first access frequency. |