Developer Guide and Reference

Contents

falign-stack

Tells the compiler the stack alignment to use on entry to routines.
Architecture Restrictions
Only available on IA-32 architecture

Syntax

Linux:
-falign-stack
=
mode
macOS:
None
Windows:
None
Arguments
mode
Is the method to use for stack alignment. Possible values are:
assume-4-byte
Tells the compiler to assume the stack is aligned on 4-byte boundaries. The compiler can dynamically adjust the stack to 16-byte alignment if needed.
maintain-16-byte
Tells the compiler to not assume any specific stack alignment, but attempt to maintain alignment in case the stack is already aligned. The compiler can dynamically align the stack if needed. This setting is compatible with gcc.
assume-16-byte
Tells the compiler to assume the stack is aligned on 16-byte boundaries and to continue to maintain 16-byte alignment. This setting is compatible with gcc.
Default
-falign-stack=assume-16-byte
The compiler assumes the stack is aligned on 16-byte boundaries and continues to maintain 16-byte alignment.
Description
This option tells the compiler the stack alignment to use on entry to routines.
Alternate Options
None

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804