If no errors occur during processing, you can use the output files from a particular phase as input to a later compiler invocation. The executable file is produced when you do not specify any phase-limiting option. The filename of the first source or object file specified with an absent suffix, is the default for the executable object file from the linker.
The table below describes the options to control the output.
Last Phase Completed |
Option |
Compiler Input |
Compiler Output |
preprocessing |
-P, -E, or |
source files |
preprocessed files, see Preprocessing |
compile only |
-c |
source |
Compile to object only (.o), do not link. |
compilation, linking, or assembly |
-S |
source, assembly, or object files |
Assigns a name of your choice to an output file |
syntax checking |
-y |
source files |
diagnostic list |
linking |
(default) |
source files |
executable file, map file |