Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

falign-functions, Qfnalign

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

Syntax

Linux:

-falign-functions[=n]

-fno-align-functions

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*).

Description

This option tells the compiler to align functions on an optimal byte boundary. If you do not specify n, the compiler aligns the start of functions on 16-byte boundaries.

IDE Equivalent
None
Alternate Options

None