04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Compiler Command-line Options<br />

See also<br />

• --locale=lang_country on page 2-86<br />

• --multibyte_chars, --no_multibyte_chars on page 2-92.<br />

2.1.112 --min_array_alignment=opt<br />

This option enables you to specify the minimum alignment of arrays.<br />

Syntax<br />

--min_array_alignment=opt<br />

Where:<br />

opt<br />

specifies the minimumalignment of arrays. The value of opt is:<br />

1 byte alignment, or unaligned<br />

2 two-byte, halfword alignment<br />

4 four-byte, word alignment<br />

8 eight-byte, doubleword alignment.<br />

Default<br />

If you do not specify a --min_array_alignment option, the compiler assumes<br />

--min_array_alignment=1.<br />

Example<br />

Compiling the following code with --min_array_alignment=8 gives the alignment<br />

described in the comments:<br />

char arr_c1[1]; // alignment == 8<br />

char c1; // alignment == 1<br />

See also<br />

• __align on page 4-2<br />

• __ALIGNOF__ on page 4-4.<br />

2.1.113 --mm<br />

This option has the same effect as -M --no_depend_system_headers.<br />

<strong>ARM</strong> DUI 0348C Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. 2-91<br />

ID101213<br />

Non-Confidential,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!