-qdirectstorage

Category

Optimization and tuning

@PROCESS

None.

Context

None.

Purpose

Informs the compiler that a given compilation unit may reference write-through-enabled or cache-inhibited storage.

Format

Read syntax diagramSkip visual syntax diagram
        .-nodirectstorage-.   
>>- -q--+-directstorage---+------------------------------------><

Defaults

-qnodirectstorage

Usage

Use this option with discretion. It is intended for programmers who know how the memory and cache blocks work, and how to tune their applications for optimal performance. For a program to execute correctly on all Power® implementations of cache organization, the programmer should assume that separate instruction and data caches exist, and should program to the separate cache model.

Note: Using the -qdirectstorage option together with the CACHE_ZERO directive may cause your program to fail, or to produce incorrect results.

Related information