Output control

The options in this category control the type of file output the compiler produces, as well as the locations of the output. These are the basic options that determine the compiler components that will be invoked, the preprocessing, compilation, and linking steps that will (or will not) be taken, and the kind of output to be generated.
Table 1. Compiler output options
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.

-M None.

Produces a dependency output file containing targets suitable for inclusion in a description file for the make command.

-M 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 -M 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 -M 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 -M.
-qmkshrobj None.

Creates a shared object from generated object files.

-qmoddir None.

Specifies the location for any module (.mod) or Fortran 2008 beginssubmoduleFortran 2008 ends (.smod) files that the compiler writes.

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