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

It is possible to repeatedly specify this option on the command line. This results in<br />

preincluding the files in the order specified.<br />

Example<br />

armcc --preinclude file1.h --preinclude file2.h -c source.c<br />

See also<br />

• -Idir[,dir,...] on page 2-72<br />

• -Jdir[,dir,...] on page 2-77<br />

• --kandr_include on page 2-78<br />

• --sys_include on page 2-121<br />

• Header files on page 2-14 in the Compiler User Guide.<br />

2.1.133 --preprocessed<br />

This option forces the preprocessor to handle files with .i filename extensions as if<br />

macros have already been substituted.<br />

Usage<br />

This option gives you the opportunity to use a different preprocessor. Generate your<br />

preprocessed code and then give the preprocessed code to the compiler in the form of a<br />

filename.i file, using --preprocessed to inform the compiler that the file has already<br />

been preprocessed.<br />

Restrictions<br />

This option only applies to macros. Trigraphs, line concatenation, comments and all<br />

other preprocessor items are preprocessed by the preprocessor in the normal way.<br />

If you use --compile_all_input, the .i file is treated as a .c file. The preprocessor<br />

behaves as if no prior preprocessing has occurred.<br />

Example<br />

armcc --preprocessed foo.i -c -o foo.o<br />

See also<br />

• --compile_all_input, --no_compile_all_input on page 2-24<br />

• -E on page 2-52.<br />

2-106 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!