> -----Original Message-----
> From: 
> avr-gcc-list-bounces+eric.weddington=atmel....@nongnu.org 
> [mailto:avr-gcc-list-bounces+eric.weddington=atmel....@nongnu.
> org] On Behalf Of Ruchi Varshney
> Sent: Monday, March 23, 2009 7:32 AM
> To: avr-gcc-list@nongnu.org
> Subject: [avr-gcc-list] AVR-GCC compiler options
> 
> Hi,
> I am looking for a way to intermix source code with the asm 
> code generated when I compile a .c file "avr-gcc -S" option.
> Right now, I know that when I use "avr-objdump -S" on the .s 
> file obtained from avr-gcc, I can see that the output is 
> intermixes with the actual source code from the .c file. Is 
> there a way I can get the source code to appear in the .s 
> file when I use "avr-gcc"?

Try: -fverbose-asm

I can't remember whether that puts the corresponding C statements (as comments) 
interleaved with the assembly output, but I think it does.


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to