|Non-Confidential||PDF version||ARM DUI0472M|
|Home > Compiler Command-line Options > --min_array_alignment=opt|
Specifies the minimum alignment of arrays.
specifies the minimum alignment of arrays. The value of
is one of:
byte alignment, or unaligned
two-byte, halfword alignment
four-byte, word alignment
eight-byte, doubleword alignment.
ARM does not recommend using this option, 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
values, and reduced performance at the lower
values. If you only want to affect the alignment
of specific arrays (rather than all arrays), use the
If you do not use this option, arrays are unaligned (byte aligned).
Compiling the following code with
--min_array_alignment=8 gives the
alignment described in the comments:
char arr_c1; // alignment == 8 char c1; // alignment == 1