This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: C source interspersed through assembly output
- From: Rayson Ho <raysonlogin at yahoo dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 11 Nov 2003 20:06:04 -0800 (PST)
- Subject: RE: C source interspersed through assembly output
There may be better ways...
Use "-g" to keep the line numbers.
Then in the .s file, you will see the line number directives:
.stabn 68,0,9,.LM4-main
^
|
line number
Rayson
> I'm a bit surprised that I can't find any command option in the doco
> to intersperse the originating source code as a comment in the
> assembly dump. I'm trying to check the validity of my assembly
> output and its kinda hard to track stuff back to the original C
> without this feature.
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree