2.1.82. --min_array_alignment=opt

This option enables you to specify the minimum alignment of arrays.

Syntax

--min_array_alignment=opt

Where:

opt

specifies the minimum alignment of arrays. The value of opt is:

1

byte alignment, or unaligned

2

two-byte, halfword alignment

4

four-byte, word alignment

8

eight-byte, doubleword alignment.

Default

If you do not specify a --min_array_alignment option, the compiler assumes --min_array_alignment=1.

Example

Compiling the following code with --min_array_alignment=8 gives the alignment described in the comments:

char arr_c1[1];      // alignment == 8
char c1;             // alignment == 1

See also

Copyright © 2007, 2010 ARM Limited. All rights reserved.ARM DUI 0348A
Non-Confidential