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.
29281 Discussions

Obtaining subroutine executed from optimized a.out file

Wee_Beng_T_
Beginner
579 Views
Hi,

I have compiled and build my cfd code, getting an a.out in the end.

I have done some revisions on my source code and I can't remember what I have changed.

Now, is it possible to see how "looked inside" the old a.out file to check which subroutines are used and executed?

What tools can I use? Also, the a.out was built using -O3, -ipo.

Thanks!
0 Kudos
1 Solution
TimP
Honored Contributor III
579 Views
With a profiler such as VTune or oprofile, you should be able to get a fair idea of time spent in various subroutines. The -ipo will prevent you from seeing some of the callees separate from their caller. You will see at best only the assembly code.

View solution in original post

0 Kudos
3 Replies
TimP
Honored Contributor III
580 Views
With a profiler such as VTune or oprofile, you should be able to get a fair idea of time spent in various subroutines. The -ipo will prevent you from seeing some of the callees separate from their caller. You will see at best only the assembly code.
0 Kudos
jimdempseyatthecove
Honored Contributor III
579 Views
When multi-file IPO is enabled the assembly output is inhibited (at least on Windows). You can use VTune as you say and then obtain Assembly code which you can copy and paste into another document (a few lines at a time). Single file IPO still produces assembly code though optimizations may be different.

Jim Dempsey
0 Kudos
Wee_Beng_T_
Beginner
579 Views
Ok I'll give it a try. Thanks!
0 Kudos
Reply