Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

qopt-mem-layout-trans, Qopt-mem-layout-trans

Controls the level of memory layout transformations performed by the compiler.

Syntax

Linux:

-qopt-mem-layout-trans[=n]

-qno-opt-mem-layout-trans

macOS:

-qopt-mem-layout-trans[=n]

-qno-opt-mem-layout-trans

Windows:

/Qopt-mem-layout-trans[:n]

/Qopt-mem-layout-trans-

Arguments

n

Is the level of memory layout transformations. Possible values are:

0

Disables memory layout transformations. This is the same as specifying -qno-opt-mem-layout-trans (Linux* or macOS) or /Qopt-mem-layout-trans- (Windows*).

1

Enables basic memory layout transformations.

2

Enables more memory layout transformations. This is the same as specifying [q or Q]opt-mem-layout-trans with no argument.

3

Enables more memory layout transformations like copy-in/copy-out of structures for a region of code. You should only use this setting if your system has more than 4GB of physical memory per core.

4

Enables more aggressive memory layout transformations. You should only use this setting if your system has more than 4GB of physical memory per core.

Default

-qopt-mem-layout-trans=2 or /Qopt-mem-layout-trans:2

The compiler performs moderate memory layout transformations.

Description

This option controls the level of memory layout transformations performed by the compiler. This option can improve cache reuse and cache locality.

Product and Performance Information

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.

Notice revision #20201201

IDE Equivalent
None
Alternate Options

None