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:
generate an assembly file of the source file
use the name of the source file as a default assembly output file name
place this file in the current directory.
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.
Options -fcode-asm and -fsource-asm generate annotations in assembly files produced with the -S option as follows:
-fcode-asm inserts code byte information in the assembly file
-fsource-asm inserts high-level source code in the assembly file
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.