Compiler Output Options Summary

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
-Ep

source files

preprocessed files, see Preprocessing

compile only

-c

source

Compile to object only (.o), do not link.

compilation, linking, or assembly

-S
-o,
name
-o,
name
-Map

source, assembly, or object files
map file

Assigns a name of your choice to an output file

syntax checking

  -y

source files
preprocessed files

diagnostic list

 

linking

 

(default)

source files
preprocessed files
assembly files
object files
libraries

 

executable file, map file