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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Compiler Command-line Options<br />

Usage<br />

This option can help you port source code that has been written for architectures without<br />

alignment requirements. You can achieve finer control of access to unaligned data, with<br />

less impact on the quality of generated code, using the __packed qualifier.<br />

Restrictions<br />

De-aligning pointers might increase the code size, even on CPUs with unaligned access<br />

support. This is because only a subset of the load and store instructions benefit from<br />

unaligned access support. The compiler is unable to use multiple-word transfers or<br />

coprocessor-memory transfers, including hardware floating-point loads and stores,<br />

directly on unaligned memory objects.<br />

Note<br />

• Code size might increase significantly when compiling for CPUs without<br />

hardware support for unaligned access, for example, pre-v6 architectures.<br />

• This option does not affect the placement of objects in memory, nor the layout and<br />

padding of structures.<br />

See also<br />

• __packed on page 4-11<br />

• #pragma pack(n) on page 4-68<br />

• Aligning data on page 5-25 in the Compiler User Guide.<br />

2.1.132 --preinclude=filename<br />

This option instructs the compiler to include the source code of the specified file at the<br />

beginning of the compilation.<br />

Syntax<br />

--preinclude=filename<br />

Where:<br />

filename<br />

is the name of the file whose source code is to be included.<br />

Usage<br />

This option can be used to establish standard macro definitions. The filename is<br />

searched for in the directories on the include search list.<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!