- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
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!
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok I'll give it a try. Thanks!

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page