发明名称 System and method for insertion of prefetch instructions by a compiler
摘要 The present invention discloses a method and device for placing prefetch instruction in a low-level or assembly code instruction stream. It involves the use of a new concept called a martyr memory operation. When inserting prefetch instructions in a code stream, some instructions will still miss the cache because in some circumstances a prefetch cannot be added at all, or cannot be added early enough to allow the needed reference to be in cache before being referenced by an executing instruction. A subset of these instructions are identified using a new method and designated as martyr memory operations. Once identified, other memory operations that would also have been cache misses can "hide" behind the martyr memory operation and complete their prefetches while the processor, of necessity, waits for the martyr memory operation instruction to complete. This will increase the number of cache hits.
申请公布号 US6651245(B1) 申请公布日期 2003.11.18
申请号 US20000679433 申请日期 2000.10.03
申请人 SUN MICROSYSTEMS, INC. 发明人 DAMRON PETER C.;KOSCHE NICOLAI
分类号 G06F9/45;G06F12/08;(IPC1-7):G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项
地址