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.

The -fno-align-functions form of this option is equivalent to -falign-functions=1, which implies that the function is not aligned. If n is not specified or is zero, a default of alignment of 4 bytes is used for both MIPS32 and MIPS16 instruction sets. If n is not a power of 2, the alignment value is rounded up.

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.