This section describes the options you can use to direct the operations of the preprocessor. Preprocessing performs such tasks as macro substitution, conditional compilation, and file inclusion.
| Option | Description |
|---|---|
| -Aname[(value)] |
Associates a symbol name with the specified value. Equivalent to an #assert preprocessing directive. |
| -A- | Causes all predefined macros and assertions to be inactive. |
| -C | Preserves comments in preprocessed source output. |
| -Dname[=text] |
Defines the macro name and associates it with the specified text. The default (-Dname) defines a macro with where text = 1. |
| -E | Directs the preprocessor to expand your source module and write the result to stdout. Output includes #line directives. |
| -EP | Directs the preprocessor to expand your source module and write the result to standard output. The output does not include #line directives. |
| -P | Directs the preprocessor to expand your source module and store the result in a .i file in the current directory. Output does not include #line directives. |
|
-Uname |
Suppresses any automatic definition for the specified macro name. |
|
-X |
Remove standard directories from include file search path. |
|
-H |
Outputs the full path names of all included files to stdout in order. Indentation is used to designate the #include dependencies. |
|
-M |
Generate makefile dependency information. |
|
-MD |
Preprocess and compile. Generate output file (.d extension) containing dependency information. |
|
-MFfile |
Generate makefile dependency information in file. Must specify -M or -MM. |
|
-MG |
Similar to -M, but treats missing header files as generated files. |
|
-MM |
Similar to -M, but does not include system header files. |
|
-MMD |
Similar to -MD, but does not include system header files. |
|
-MX |
Generate dependency file (.o.dep extension) containing information used for the Intel wb tool. |
|
-dM |
Output macro definitions in effect after preprocessing (use with -E). |
|
-MD |
Preprocess and compile. Generate output file (.d extension) containing dependency information. |
|
-Idirectory |
Specifies an additional directory to search for include files. |