Method and apparatus for software scouting regions of a program
AssigneeOracle America, Inc.
InventorsPartha P. Tirumalai, Yonghong Song, Spiros Kalogeropulos
Life of this patent
Estimating the term…
Loading patent…
AssigneeOracle America, Inc.
InventorsPartha P. Tirumalai, Yonghong Song, Spiros Kalogeropulos
Estimating the term…
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.
A method for software scouting the regions of a program, comprising:
A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for software scouting the regions of a program, the method comprising:
An apparatus for software scouting the regions of a program,
Dependencies are inferred from the claim text.