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. |
compilation, linking, or assembly |
-S |
source, assembly, or object files map file |
Assigns a name of your choice to an output file |
-S[cs] |
source |
Does not stop compilation after assembly is produced. It controls output
into an .s | |
syntax checking |
-y |
source files |
diagnostic list |
linking |
(default) |
source files |
executable file, map file |
preprocessing |
-P, -E, or |
source files |
preprocessed files, see Preprocessing |
The executable object file is produced when you do not specify any phase-limiting option. You can also request a linker map file. The filename of the first source or object file specified, but absence of the suffix, is the default for the executable object file from the linker.