avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] AVR-GCC compiler options


From: Ruchi Varshney
Subject: Re: [avr-gcc-list] AVR-GCC compiler options
Date: Tue, 24 Mar 2009 15:05:08 -0400

Hi Eric,
Thanks for your reply. But I tried "avr-gcc -S -fverbose-asm test.c" but it did not add in the source code comments in the .s file. 
I was hoping you had any other suggestions.

Thanks
Ruchi


On Tue, Mar 24, 2009 at 12:09 PM, Weddington, Eric <address@hidden> wrote:


> -----Original Message-----
> From:
> avr-gcc-list-bounces+eric.weddington=atmel.com@nongnu.org
> [mailto:avr-gcc-list-bounces+eric.weddington=atmel.com@nongnu.
> org] On Behalf Of Ruchi Varshney
> Sent: Monday, March 23, 2009 7:32 AM
> To: address@hidden
> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]