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.

Note

Mac OS*: This option is not supported.

To facilitate compiler optimization:

To use this option, you must also specify -03 (Linux) or /03 (Windows).

For more information on how to optimize using this option, see the following topic:

Additionally, you can refer to the hardware and software programming resources listed in Other Resources.