LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

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


Hi,

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,

Sebastian.
 
Old 07-18-2006, 11:44 PM   #2
slantoflight
Member
 
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.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 11:51 PM.

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