4.3.10.3 Aligned Attribute

The aligned(n) attributed aligns the object’s address with the next n-byte boundary, where n is an numerical argument to the attribute. If the CCI is enabled (see 3.6.3.4 Ext Option) a more portable macro, __align(n) (note the different spelling), is available.

This attribute can also be used on a structure member. Such a member will be aligned to the indicated boundary within the structure.

If the alignment argument is omitted, the alignment of the variable is set to 1 (the largest alignment value for a basic data type).

Note that the aligned attribute is used to increase the alignment of a variable, not reduce it. To decrease the alignment value of a variable, use the packed attribute.