Specifying Assembly Files

You can use the -S option to generate an assembly file. The compilation stops at producing the assembly file. To specify an alternate name for this assembly file, use the -ofile option .

IA-32 compiler:

prompt>ifc -S -ofile.s x.f90

ItaniumŪ compiler:

prompt>efc -S -ofile.s x.f90

In the above example, -S tells the compiler to generate an assembly file, while -ofile.s  assigns to it the name file.s rather than the default x.s.

The option -S tells compiler to:

Note

The -S option stops the compiler upon generating and saving the assembly files. Without the -S option, the compiler proceeds to generating object files without saving the assembly files.

Producing Assembly Files with Annotations and Comments

Options -fcode-asm and  -fsource-asm generate annotations in assembly files produced with the -S option as follows:

In addition, the options -fverbose-asm and  -fnoverbose-asm enable and disable, respectively, inserting comments containing compiler version and options used in the assembly file. The -fverbose-asm option is enabled by default when producing an assembly file with -S.