Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28602 Discussions

How to let source code and its assembly code coexist in .s file

george_her
Beginner
346 Views

I've just analysedsome assembly code generated by Ifort 9.0, and find no correspodent source code in the .s file. That cause me pain.

I know some other compiler such as open64 doprovide detailed information in .s file. What about ICC?

0 Kudos
1 Reply
TimP
Honored Contributor III
346 Views
ifort and icc supply comments, of the form #source_line.xxxx, so you can key back to the corresponding source code. Also, if you use -g option, e.g.
ifort -O -g yoursource.f
then
objdump -S yoursource.o
shows a mixture of source and disassembly, just as it would with gfortran.
0 Kudos
Reply