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 />

Restrictions<br />

Options from a project template file are only set when they do not conflict with options<br />

already set on the command line. If an option from a project template file conflicts with<br />

an existing command-line option, the command-line option takes precedence.<br />

Example<br />

Consider the following project template file:<br />

<br />

<br />

<br />

<br />

--cpu=<strong>ARM</strong>926EJ-S<br />

--fpu=vfpv2<br />

<br />

<br />

<br />

When the RVDS_PROJECT environment variable is set to point to this file, the command:<br />

armcc -c foo.c<br />

results in an actual command line of:<br />

armcc --cpu=<strong>ARM</strong>926EJ-S --fpu=VFPv2 -c foo.c<br />

See also<br />

• --reinitialize_workdir on page 2-110<br />

• --workdir=directory on page 2-136.<br />

2.1.136 --reassociate-saturation<br />

This option enables more aggressive optimization when vectorizing loops that use<br />

saturating addition, by permitting reassociation of saturation arithmetic.<br />

Restriction<br />

Saturation addition is not associative, so enabling reassociation could affect the result<br />

with a reduction in accuracy.<br />

Example<br />

The following code does not vectorize unless --reassociate-saturation is specified.<br />

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

Non-Confidential,<br />

ID101213

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

Saved successfully!

Ooh no, something went wrong!