Intel® Fortran Compiler 17.0 Developer Guide and Reference
Compiler-generated assembler output listings and linker-generated map files can help you understand the effects of compiler optimizations and see how your application is laid out in memory. They may also help you interpret the information provided in a stack trace at the time of an error.
When compiling from the command line, specify the S option:
ifort -S file.f90 ! Linux and OS X
ifort file.f90 /S ! Windows OS
On Linux* and OS X* systems, the resulting assembly file name has a .s suffix. On Windows* systems, the resulting assembly file name has an .asm suffix.
On Windows*, you can also use the Microsoft Visual Studio* integrated development environment:
Select Project > Properties.
Click the Fortran tab.
In the Output Files category, change the Assembler Output settings according to your needs. You can choose from a number of options such as No Listing, Assembly-only Listing, and Assembly, Machine Code and Source.
When compiling from the command line, specify the -Xlinker and -M options (Linux and OS X) or the /map (Windows) option:
ifort file.f90 -Xlinker -M ! Linux and OS X
ifort file.f90 /map ! Windows
On Windows systems, you can also use the Visual Studio integrated development environment:
Select Project>Properties.
Click the Linker tab.
In the Debug category, select Generate Map File.
You can use the list compiler option to create a listing of the source file. The listing can contain the following information: a display of INCLUDE files, a symbol list with a line number cross reference for each routine, and a list of compiler options used for the compilation.
Use the show compiler option to control the contents of the listing file.
Additionally, on Windows systems, you can use the Visual Studio integrated development environment to create a source file listing:
Select Project > Properties.
In the Output Files category, change the Source Listing setting to Yes.