This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Mixed-mode assembler
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Nick Gianakas <gianakas at optonline dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: 21 Sep 2004 11:12:30 -0400
- Subject: Re: Mixed-mode assembler
- References: <1095779287.5852.2.camel@nimble.325Bayport>
Nick Gianakas <gianakas@optonline.net> writes:
> Does GCC have an option to generate mixed-mode assembler output, similar
> to to GDB's mixed-mode output? I see the -S option stops before the
> assembler stage. Is there another option for GCC to generate this file
> w/ the source line above the asm code (commented out, of course)?
You can kind of do it using gas, by using
gcc -c -g -Wa,-ahl FILE.c
That will print the assembly+source listing on stdout.
Ian