If no errors occur during processing, you can use the output files from a particular phase as input to a later compiler invocation. The table below describes the options to control the output.
Last Phase Completed | Option | Compiler Input | Compiler Output |
---|---|---|---|
compile only | -c | source | Compile to object only (.o), do not link. |
-S | source | Generate assembly files with .s suffix | |
syntax checking | -syntax | source files preprocessed files |
diagnostic list |
linking | (default) | source files preprocessed files assembly files object files librarie |
executable file, map file |
preprocessing | -P, -E, or -Ep | source files | preprocessed files |