29.12.2014 Views

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

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.

<strong>Compiler</strong> Command-line Options<br />

4 Treats accesses through pointers as having an alignment of at most four,<br />

that is, at most word aligned.<br />

8 Accesses through pointers have normal alignment, that is, at most<br />

doubleword aligned.<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 />

• Aligning data on page 4-24 in the <strong>Compiler</strong> User <strong>Guide</strong>.<br />

2.1.98 --[no_]project=filename<br />

The option --project=filename instructs the compiler to load the project template file<br />

specified by filename.<br />

Note<br />

To use filename as a default project file, set the RVDS_PROJECT environment variable to<br />

filename.<br />

The option --no_project prevents the default project template file specified by the<br />

environment variable RVDS_PROJECT from being used.<br />

2-74 Copyright © 2007, 2010 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DUI 0348A<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!