Andes Workshop
http://forum.andestech.com/

How to intermix source code with disassembly
http://forum.andestech.com/viewtopic.php?f=23&t=635
Page 1 of 1

Author:  cindy [ Wed Oct 24, 2012 5:16 pm ]
Post subject:  How to intermix source code with disassembly

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 7892 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 7892 times ]

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/