Patent ID: 9483244
Filing Date: 2016-11-01
CPC Classification: G06F

Claim Text:
1. A compiling method, comprising: converting, by a computer, a source program into intermediate code; detecting, on basis of profile information related to a memory access for accessing target data stored in a memory, a memory access that fits an access pattern corresponding to an operating condition of a hardware prefetch function for the target data, the target data being data for which a prefetch instruction is to be inserted in advance, the prefetch instruction being an instruction for transferring data stored in the memory to a cache memory; computing an evaluation value for the target data on basis of a length of successive memory accesses that fit the access pattern; determining, on basis of the evaluation value, whether to suppress insertion of a prefetch instruction for the target data; updating the intermediate code on basis of a result of the determination; and converting the updated intermediate code into a machine language program.