摘要 |
PROBLEM TO BE SOLVED: To provide a method for applying a batch load/store command, in generating a code for an architecture for collectively loading or storing a plurality of data sets which continue on a memory, when an array reference in a loop does not satisfy address boundary conditions of the collective load/store command. SOLUTION: With respect to an array reference included in a loop, it is determined whether a first reference address of the loop satisfies the address boundary conditions of the batch load/store command. If not, a transfer code between a work array satisfying the boundary conditions and the array is prepared, and the array reference in the loop is replaced by the reference of the work array. In preparing the transfer code, if the reference of the array in the loop is in use, a code for copying the value of the array onto the work array is inserted in front of the loop; and if the reference of the array in the loop is a definition, the code for copying the value of the array onto the work array is inserted at the rear of the loop.
|