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

Syntax<br />

--project=filename<br />

--no_project<br />

Where:<br />

filename<br />

is the name of a project template file.<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-77<br />

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

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

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

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!