Patent ID: 7689976

Claim:
A compilation method for converting a source program into an object program for use with a computer having a data cache memory and a main memory, wherein the data cache memory comprises a plurality of blocks and each of the plurality of blocks of the data cache memory, specified by a set number, is a storage unit, and wherein the main memory comprises a plurality of blocks, each of the plurality of blocks of the main memory having a set number representing a block of the plurality of blocks of the data cache memory, wherein said compilation method comprises: a grouping step of analyzing grouping information that is used for grouping data objects included in the source program, and placing each of the data objects to which accesses are made at similar timings into a respective different group based on a result of the analysis; and an object program generation step of generating the object program based on a result of the grouping performed in said grouping step, the object program not allowing data objects belonging to different groups to be statically laid out in any blocks of the plurality of blocks of the main memory having a same set number on the data cache memory, and wherein in said grouping step, a directive to the compiler apparatus included in the source program is analyzed, and the data objects included in the source program are placed into the different groups based on a result of the analysis of the directive.