Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

qopt-dword-index-for-array-of-structs, Qopt-dword-index-for-array-of-structs

Lets the compiler use dword indexes to access elements of arrays of structs that do not exceed a specified number of bytes.

Syntax

Linux:

-qopt-dword-index-for-array-of-structs[=val]

Windows:

/Qopt-dword-index-for-array-of-structs[:value]

Arguments

val

Is 16 or 32. If val is not specified, the compiler uses dword indexes to access elements of arrays of structs that do not exceed 16 bytes.

Default

OFF

The compiler uses dword indexes only when it can determine it is safe to do so.

Description

This option lets the compiler use dword indexes to access elements of arrays of structs that do not exceed val bytes.

The relevant arrays should contain no more than INT_MAX / sizeof(element) elements.

IDE Equivalent

None

Alternate Options

None

Example

The following shows an example of using this option:

ifx -qopt-dword-index-for-array-of-structs=32 t.f90