Prefetching with Options

The goal of prefetch insertion optimization is to reduce cache misses by providing hints to the processor about when data should be loaded into the cache. The prefetch optimization is enabled or disabled by the -prefetch (Linux*) or /Qprefetch (Windows*) compiler option. To facilitate compiler optimization:

To use this option, you must also specify -03 (Linux) or /03 (Windows). In addition to the -prefetch (Linux*) or /Qprefetch (Windows*) option, an intrinsic subroutine mm_prefetch and compiler directive prefetch are also available.  See Prefetching Data for more information.

For more information on how to optimize this option, refer to the Intel® Pentium® 4 and Intel® Xeon™ Processor Optimization Reference Manual. Additionally, see the following topic: