Andes Workshop

It is currently Thu Mar 28, 2024 10:51 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to intermix source code with disassembly
PostPosted: Wed Oct 24, 2012 5:16 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
How to intermix source code with disassembly?
(如何將編譯後的組合語言和原始C code混編?)

There is a option '-S' can achieve this effect.
-S, --source Intermix source code with disassembly

Add '-S' option in objdump option, as the following picture.
Attachment:
-s2.png
-s2.png [ 49.42 KiB | Viewed 7832 times ]


Then recompile it. We can see the effect.
It is more convenint to view assembly code.
Attachment:
-S.png
-S.png [ 83.67 KiB | Viewed 7832 times ]


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group