8.155 --preprocessed

Forces the preprocessor to handle files with .i filename extensions as if macros have already been substituted.

Usage

This option gives you the opportunity to use a different preprocessor. Generate your preprocessed code and then give the preprocessed code to the compiler in the form of a filename.i file, using --preprocessed to inform the compiler that the file has already been preprocessed.

Restrictions

This option only applies to macros. Trigraphs, line concatenation, comments and all other preprocessor items are preprocessed by the preprocessor in the normal way.

If you use --compile_all_input, the .i file is treated as a .c file. The preprocessor behaves as if no prior preprocessing has occurred.

Examples

armcc --preprocessed foo.i -c -o foo.o
Related reference
8.27 --compile_all_input, --no_compile_all_input
8.68 -E
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.