prefetch, Qprefetch

Enables prefetch insertion optimization.

IDE Equivalent

Windows: Optimization > Prefetch Insertion
Linux: None

Architectures

IA-32, Intel® EM64T

Syntax

Linux: -prefetch
-no-prefetch
Windows:  /Qprefetch
/Qprefetch-

Arguments

None

Default

ON Prefetch insertion optimization is enabled.

Description

This option enables prefetch insertion optimization. To use this option, you must also specify O3.

The goal of prefetching is to reduce cache misses by providing hints to the processor about when data should be loaded into the cache.

To disable the prefetch insertion optimization, use -no-prefetch (Linux) or /Qprefetch- (Windows).

Alternate Options

None

See Also

Optimizing Applications: Coding Guidelines for Intel(R) Architectures