1.4 -E

Executes the preprocessor step only.

By default, output from the preprocessor is sent to the standard output stream and can be redirected to a file using standard UNIX and MS-DOS notation.
You can also use the -o option to specify a file for the preprocessed output.
By default, comments are stripped from the output. Use the -C option to keep comments in the preprocessed output.

Examples

Use -E -dD to generate interleaved macro definitions and preprocessor output:
armclang --target=aarch64-arm-none-eabi -E -dD source.c > raw.c
Use -E -dM to list all the macros that are defined at the end of the translation unit, including the predefined macros:
armclang --target=arm-arm-none-eabi -E -dM source.c
Related reference
1.48 --target
Non-ConfidentialPDF file icon PDF versionARM DUI0774E
Copyright © 2014-2016 ARM. All rights reserved.