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:
Option | Input | Output |
---|---|---|
-P |
|
Preprocessed files (.i files). |
-E |
|
Preprocesses source file and directs output to stdout. |
-EP |
|
Preprocesses source file, directs output to stdout, and omits line numbers. |
-c |
|
Compile to object only (.o), do not link. |
-S |
|
Generate assemblable files with .s suffix and stops the compilation process. |
-syntax |
|
Emits diagnostic list of syntax errors to sdtout. There is no output for source files free of syntax errors. |
(Default) |
|
Executable file (.out files). |