[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] avr-objdump behaviour
From: |
Erik Christiansen |
Subject: |
Re: [avr-gcc-list] avr-objdump behaviour |
Date: |
Mon, 15 Nov 2004 18:51:53 +1100 |
User-agent: |
Mutt/1.5.6+20040722i |
On Thu, Nov 11, 2004 at 05:14:40PM +0800, Ben Mann wrote:
> Using the following command line,
> -----------------------
> avr-gcc -g -Os -mmcu=atmega64 -c demo.c
> avr-objdump -h -S -l demo.c > demo.lst
> -----------------------
> compiling this .C file:
> -----------------------
> void bar();
>
> void foo() {
> bar();
> }
>
> void bar() {
> unsigned char c;
> for(c = 255; c != 0; c--)
> ;
> }
> -----------------------
> Yields .lst file without the source line "bar();" (demo.c:4)
> -----------------------
Ben,
Is it possible that "void bar();" is just being optimised out, and
therefore isn't there to be listed? If you try with a non-void function,
we'd see if there is any problem with avr-objdump.
Erik
Re: [avr-gcc-list] avr-objdump behaviour,
Erik Christiansen <=