Output control
Option name | Description |
---|---|
-c | Instructs the compiler to compile or assemble the source files only but do not link. With this option, the output is a .o file for each source file. |
-C, -C! | When used in conjunction with the -E or -P options, preserves or removes comments in preprocessed output. |
-E | Preprocesses the source files named in the compiler invocation, without compiling. |
-o | Specifies a name for the output object, assembler, executable, or preprocessed file. |
-P | Preprocesses the source files named in the compiler invocation, without compiling, and creates an output preprocessed file for each input file. |
-S | Generates an assembler language file for each source file. |
-X (-W) | -Xpreprocessor option or -Wp,preprocessor option passes the listed option directly to the preprocessor. |
-qmakedep, -MD (-qmakedep=gcc) | Produces the dependency files that are used by the make tool for each source file. |
-dM (-qshowmacros) | Emits macro definitions to preprocessed output. |
-qtimestamps | Controls whether or not implicit time stamps are inserted into an object file. |
-shared (-qmkshrobj) | Creates a shared object from generated object files. |
- -###
- -dCHARS
- -M
- -MD
- -MF file
- -MG
- -MM
- -MMD
- -MP
- -MQ target
- -MT target
- -Xpreprocessor option