摘要 |
PROBLEM TO BE SOLVED: To generate a program load module for automatically maintaining cache consistency between a cache memory of each processor and a main memory or between cache memories with each other even if a plurality of partial programs for reading and writing the same data are respectively allocated to a plurality of processors sharing the main memory are carried out. SOLUTION: A compiler specifies data shared by the plurality of partial programs and attaches a prescribed identification information (prefix such as "_shr_"), extracts only the data with identification information attached thereto to form a shared data area when a linker combines programs. Since the area is arranged in an area designated to be outside a cache object within a memory space when the programs are carried out, the shared data are not copied to the cache memories, and only values on the main memory are always referred to/updated. COPYRIGHT: (C)2004,JPO
|