PREFETCH | NOPREFETCH

Category

Optimization and tuning

Pragma equivalent

None.

Purpose

Inserts prefetch instructions automatically where there are opportunities to improve code performance.

When PREFETCH is in effect, the compiler may insert prefetch instructions in compiled code. When NOPREFETCH is in effect, prefetch instructions are not inserted in compiled code.

Syntax

Read syntax diagramSkip visual syntax diagramPREFETCHNOPREFETCH

Defaults

PREFETCH

Usage

The compiler will attempt to generate prefetch instructions for ARCH(8) or above. The compiler will not issue a message if PREFETCH is active and the ARCH level is below 8.

The usage status of this option is inserted in the object file to aid you in diagnosing a problem with your program.

Predefined macros

None.