5.7.7.6 Align-functions Option

The -falign-functions=n option aligns the start of functions to the next power-of-two greater than n, skipping up to n bytes.

For instance, -falign-functions=32 aligns functions to the next 32-byte boundary; -falign-functions=24 aligns functions to the next 32-byte boundary but only if this can be done by skipping no more than 23 bytes.

This option is automatically enabled at optimization levels -O2 and -O3.

The -fno-align-functions form of this option is equivalent to -falign-functions=1 and implies that functions are not aligned.

The -falign-functions form of this option (with no argument) performs no additional alignment other than the usual alignment by 4 for code using the MIPS instruction set or by 2 for code using the MIPS16 instruction set.