发明名称 Method and apparatus for using an assist processor to prefetch instructions for a primary processor
摘要 One embodiment of the present invention provides a system that prefetches instructions by using an assist processor to perform prefetch operations in advance of a primary processor. The system operates by executing executable code on the primary processor, and simultaneously executing a reduced version of the executable code on the assist processor. This reduced version of the executable code executes more quickly than the executable code, and performs prefetch operations for the primary processor in advance of when the primary processor requires the instructions. The system also stores the prefetched instructions into a cache that is accessible by the primary processor so that the primary processor is able to access the prefetched instructions without having to retrieve the prefetched instructions from a main memory. In one embodiment of the present invention, prior to executing the executable code, the system compiles source code into executable code for the primary processor. Next, the system profiles the executable code to create instruction traces for frequently referenced portions of the executable code. The system then produces the reduced version of the executable code for the assist processor by producing prefetch instructions to prefetch portions of the instruction traces into a cache that is accessible by the primary processor. The system also inserts communication instructions into the executable code for the primary processor and into the reduced version of the executable code for the assist processor to transfer progress information from the primary processor to the assist processor. This progress information triggers the assist processor to perform the prefetch operations.
申请公布号 US6681318(B2) 申请公布日期 2004.01.20
申请号 US20010761216 申请日期 2001.01.16
申请人 SUN MICROSYSTEMS, INC. 发明人 CHAUDHRY SHAILENDER;TREMBLAY MARC
分类号 G06F12/08;G06F9/38;G06F9/45;G06F15/16;(IPC1-7):G06F9/38 主分类号 G06F12/08
代理机构 代理人
主权项
地址