Output control
The options in this category control the type of file output the compiler produces, as well as the locations of the output.
| Option name | @PROCESS directive | Description |
|---|---|---|
| -c | None. |
Instructs the compiler to compile or assemble the source files only but do not link. With this option, the output is a .o file for each source file. |
| -d | None. |
Causes preprocessed source files that are produced by cpp to be kept rather than deleted. |
| -E | None |
Preprocesses the source files named in the compiler invocation, without compiling. When preprocessing is not enabled, this option has no effect. To enable preprocessing, you can specify the -qpreprocess option. |
| -G | None. |
Generates a shared object enabled for runtime linking. |
| -MMD | None. | Produces a dependency output file containing targets suitable for inclusion in a description file for the make command. -MMD is the short form of -qmakedep. |
| -MF | None. |
Specifies the name or location for the dependency output files that are generated by the -qmakedep or -MMD option. |
| -MT | None. |
Specifies the target name of the object file in the make rule in the dependency output file that is generated by the -qmakedep or -MMD option. |
| -o | None. |
Specifies a name for the output object, assembler, or executable file. |
| -qmakedep | None. | Produces a dependency output file containing targets suitable for inclusion in a description file for the make command. -qmakedep is the long form of -MMD. |
| -qmkshrobj | None. |
Creates a shared object from generated object files. |
| -qmoddir | None. |
Specifies the location for any module (.mod) or
|
| -qtimestamps | None. |
Controls whether or not implicit time stamps are inserted into an object file. |
| -S | None. |
Generates an assembler language file for each source file. |
submodule
(