Developer Guide and Reference

Contents

falign-functions, Qfnalign

Tells the compiler to align
functions
on an optimal byte boundary.

Syntax

Linux and macOS:
-falign-functions
[
=
n
]
-fno-align-functions
Windows:
/Qfnalign
[
:
n
]
/Qfnalign-
Arguments
n
Is an optional positive integer initialization expression indicating the number of bytes for the minimum alignment boundary. It tells the compiler to align
functions
on a power-of-2 byte boundary. If you do not specify
n
, the compiler aligns the start of
functions
on 16-byte boundaries.
The
n
must be a positive integer less than or equal to 4096. If you specify a value that is not a power of 2,
n
will be rounded up to the nearest power of 2. For example, if 23 is specified for
n
,
functions
will be aligned on 32 byte boundaries.
Default
-fno-align-functions
or
/Qfnalign-
The compiler aligns
functions
on 2-byte boundaries. This is the same as specifying
-falign-functions=2
(Linux* and
macOS*
)
or
/Qfnalign:2
(Windows*)