Does anybody know the option to give the symbolic list of the op code for the converted Fortran when using gFortran. I also need the option to provide the memory loading “map” for the various routines. For the intel fortran compiler, ifort, the compiler option is “-s”. for the linker it is -M:
from the intel manual:[FONT=Verdana][size=1][FONT=Verdana][size=1] Generating Listing and Map Files
[/size][/size][/FONT][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1]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.
[/size][/FONT][/size][/FONT][FONT=Verdana][size=4][/size][/FONT][FONT=Verdana]How to Generate Assembler Output
[/FONT][FONT=Verdana][size=4][/size][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1]When compiling from the command line, specify the [/size][/FONT][/size][/FONT][FONT=Courier New][size=1][FONT=Courier New][size=1]-S [/size][/FONT][/size][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1](Linux OS and Mac OS X) or
[/size][/FONT][/size][/FONT][FONT=Courier New][size=1][FONT=Courier New][size=1]/asmattr [/size][/FONT][/size][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1]option with one of its keyword (Windows* OS):
[/size][/FONT][/size][/FONT][FONT=Verdana][size=1][/size][/FONT][FONT=Courier New][size=2][FONT=Courier New][size=2]ifort -S file.f90 (Linux OS and Mac OS X)
ifort file.f90 /asmattr:all (Windows OS)
[/size][/size][/FONT][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1]On Linux OS and Mac OS X, the resulting assembly file name has a .s suffix. On Windows OS, the resulting assembly file name has an .asm suffix.
Additionally, on Windows OS, you can use the Visual Studio integrated development environment:
[/size][/FONT][/size][/FONT][FONT=Verdana][size=4][/size][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1]1. Select [/size][/FONT][/size][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1]Project>Properties[/size][/size][/FONT][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1].
2. Click [/size][/FONT][/size][/FONT][FONT=Courier New][size=1][FONT=Courier New][size=1]the [/size][/FONT][/size][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1]Fortran tab.
3. In the [/size][/FONT][/size][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1]Output Files [/size][/size][/FONT][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1]category, change the [/size][/FONT][/size][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1]Assembler Output [/size][/size][/FONT][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1]settings according to
your needs. You can choose from a number of options such as [/size][/FONT][/size][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1]No Listing[/size][/size][/FONT][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1],
[/size][/FONT][/size][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1]Assembly-only Listing[/size][/size][/FONT][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1], and [/size][/FONT][/size][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1]Assembly, Machine Code and Source[/size][/size][/FONT]**[/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1].
[/size][/FONT][/size][/FONT][FONT=Verdana][size=4][/size][/FONT][FONT=Verdana]How to Generate a Link Map (.map) File
[/FONT][FONT=Verdana][size=4][/size][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1]When compiling from the command line, specify the -Xlinker and [/size][/FONT][/size][/FONT][FONT=Courier New][size=1][FONT=Courier New][size=1]-M [/size][/FONT][/size][/FONT][FONT=Verdana][size=1][FONT=Verdana][size=1]options (Linux OS and
Mac OS X) or the [/size][/FONT][/size][/FONT][FONT=Courier New][size=1][FONT=Courier New][size=1]/map [/size][/FONT][/size][/FONT][FONT=Verdana][size=1][FONT=Verdana]size=1 option:
[/size][/FONT][/size][/FONT]
[LEFT][FONT=Courier New][size=2][FONT=Courier New][size=2] [/LEFT][/size][/size][/FONT][/FONT]Thank you,
Bob