Controlling Compilation

If no errors occur during processing, you can use the output files from a particular phase as input to a subsequent compiler invocation. The table below describes the options to control the output:

Last Phase Completed Option Compiler Input Compiler Output

Preprocessing

-E, -P, or -EP

  • Source files

Preprocessed files (.i files)

Compile only

-c

  • Source files
  • Preprocessed files

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

  -S
  • Source files
  • Preprocessed files
Generate assemblable files with .s suffix and stops the compilation process.
Syntax checking -syntax
  • Source files
  • Preprocessed files
Diagnostic list
Linking (Default)
  • Source files
  • Preprocessed files
  • Assemblable files
  • Object files
  • Libraries
Executable file (.out files)