Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-18-2006, 08:08 PM   #1
LQ Newbie
Registered: Jul 2006
Posts: 4

Rep: Reputation: 0
Trying to see assembly code on Runtime


I would like to know if is it possible to see the assembly code of an App when executing. For example, execute gzip and see what it does when compressing a file. I mean, obtain a file with all the assembly code since gzip executes till it ends, in sequential order. I think this is not possible with modern processors due to OOOE, Prefetch, etc. So, what would be the best solution possible? GDB? DTrace? Or something else?

Thanks in Advance,

Old 07-19-2006, 12:44 AM   #2
Registered: Aug 2005
Distribution: Smoothwall
Posts: 283
Blog Entries: 3

Rep: Reputation: 35
You might try objdump -D <exectuble>.

Or if you're really hankering to see even more intimate details you could try qemu, which completely emulates a processor. With simple command switches you can see the inner workings of entire OSes. Very powerful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
assembly code on linux omerlh Programming 1 06-01-2006 04:25 AM
gcc/Assembly code gigantas1985 Programming 0 02-28-2006 06:52 AM
Reading Assembly code max_rsr Programming 4 07-22-2005 09:06 AM
Command for getting assembly code aizkorri Programming 1 06-18-2002 06:04 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration