Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29299 Discussions

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

george_her
Beginner
655 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
655 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