prefetch, Qprefetch

Enables prefetch insertion optimization.

IDE Equivalent

Windows: Optimization > Prefetch Insertion
Linux: None
Mac OS X:
Optimization > Enable Prefetch Insertion

Architectures

IA-32 architecture, Intel® 64 architecture, IA-64 architecture

Syntax

Linux and Mac OS X: -prefetch
-no-prefetch
Windows:  /Qprefetch
/Qprefetch-

Arguments

None

Default

IA-64 architecture: -prefetch or /Qprefetch
IA-32 architecture and Intel® 64 architecture:
-no-prefetch or /Qprefetch-
On IA-64 architecture, prefetch insertion optimization is enabled. On IA-32 architecture and Intel® 64 architecture, prefetch insertion optimization is disabled.

Description

This option enables prefetch insertion optimization. The goal of prefetching is to reduce cache misses by providing hints to the processor about when data should be loaded into the cache.

On IA-64 architecture, this option is enabled by default if you specify option O1, O2, or O3. To disable prefetching at these optimization levels, specify -no-prefetch (Linux and Mac OS X) or /Qprefetch- (Windows).

On IA-32 architecture and Intel® 64 architecture, this option enables prefetching when higher optimization levels are specified.

Alternate Options

None

See Also

Optimizing Applications:
Coding Guidelines for Intel(R) Architectures
Prefetching Support
Prefetching with Options