Compiler Input and 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 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
-o,
name
-o,
name
-map

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
assembly file with code or source annotations containing extra information compared with using
-S
.

syntax checking

 

-y

source files
preprocessed files

diagnostic list

 

linking

 

(default)

source files
preprocessed files
assembly files
object files
libraries

 

executable file, map file

preprocessing

-P, -E, or
-Ep

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.