This option enables you to specify the minimum alignment of arrays.
specifies the minimum alignment of arrays. The value of
byte alignment, or unaligned
two-byte, halfword alignment
four-byte, word alignment
eight-byte, doubleword alignment.
Use of this option is not recommended, unless required in
certain specialized cases. For example, porting code to systems
that have different data alignment requirements. Use of this option
can result in increased code size at the higher
and reduced performance at the lower
If you only want to affect the alignment of specific arrays (rather
than all arrays), use the __align keyword instead.
Compiling the following code with
the alignment described in the comments:
char arr_c1; // alignment == 8 char c1; // alignment == 1