Invention Grant
- Patent Title: Method and apparatus for software scouting regions of a program
- Patent Title (中): 程序的软件侦察区域的方法和装置
-
Application No.: US11272210Application Date: 2005-11-09
-
Publication No.: US07849453B2Publication Date: 2010-12-07
- Inventor: Partha P. Tirumalai , Yonghong Song , Spiros Kalogeropulos
- Applicant: Partha P. Tirumalai , Yonghong Song , Spiros Kalogeropulos
- Applicant Address: US CA Redwood Shores
- Assignee: Oracle America, Inc.
- Current Assignee: Oracle America, Inc.
- Current Assignee Address: US CA Redwood Shores
- Agency: Park, Vaughan, Fleming & Dowler LLP
- Agent Anthony P. Jones
- Main IPC: G06F9/45
- IPC: G06F9/45

Abstract:
One embodiment of the present invention provides a system that generates code for software scouting the regions of a program. During operation, the system receives source code for a program. The system then compiles the source code. In the first step of the compilation process, the system identifies a first set of loops from a hierarchy of loops in the source code, wherein each loop in the first set of loops contains at least one effective prefetch candidate. Then, from the first set of loops, the system identifies a second set of loops where scout-mode prefetching is profitable. Next, for each loop in the second set of loops, the system produces executable code for a helper-thread which contains a prefetch instruction for each effective prefetch candidate. At runtime the helper-thread is executed in parallel with the main thread in advance of where the main thread is executing to prefetch data items for the main thread.
Public/Granted literature
- US20070022412A1 Method and apparatus for software scouting regions of a program Public/Granted day:2007-01-25
Information query