align

Determines whether variables and arrays are naturally aligned.

IDE Equivalent

None

Architectures

IA-32, Intel® 64 architectures

Syntax

Linux and Mac OS X:

-align

-noalign

Windows:

None

Arguments

None

Default

OFF

Variables and arrays are aligned according to the gcc model, which means they are aligned to 4-byte boundaries.

Description

This option determines whether variables and arrays are naturally aligned.Option -align forces the following natural alignment:

Type

Alignment

double

8 bytes

long long

8 bytes

long double

16 bytes

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.

Caution iconCaution

If you are interacting with system libraries or other libraries that are compiled without -align, your application may not perform as expected.

Alternate Options

None


Submit feedback on this help topic

Copyright © 1996-2011, Intel Corporation. All rights reserved.