align

Tells the compiler to analyze and reorder memory layout for variables and arrays.

IDE Equivalent

None

Architectures

IA-32, Intel® EM64T

Syntax

Linux and Mac OS: -align
  -noalign
Windows:    None

Arguments

None

Default

OFF      Variables and arrays are analyzed and reordered according to the gcc model.

Description

This option tells the compiler to analyze and reorder memory layout for variables and arrays. It sets the alignment for objects of type long long, double, and long double to values more suited to best performance.

If you are not interacting with system libraries or other libraries that are compiled without -align, this option can improve performance by reducing misaligned accesses.

Alternate Options

None