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

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

[avr-gcc-list] avr-objdump give myterious information or compiler buggy?


From: Klaus Rudolph
Subject: [avr-gcc-list] avr-objdump give myterious information or compiler buggy?
Date: Mon, 4 Mar 2002 15:46:31 +0100 (MET)

Hi all,

i compiled a simple function:

char FLASH s_adr_train[]={0x04, 0x00 , KADR_TRAIN, 0x00, 0x0};
void AdressTrain(u08 train_id) {
    memcpy_P(buffer, s_adr_train, 5);
    buffer[3]=train_id;
    WriteString(buffer);
}

the output from avr-objdump -D test.out 
give me the following output:

00000af2 <AdressTrain>:
     af2:   1f 93           push    r17
     af4:   18 2f           mov r17, r24
     af6:   45 e0           ldi r20, 0x05   ; 5
     af8:   50 e0           ldi r21, 0x00   ; 0
     afa:   6a ea           ldi r22, 0xAA   ; 170 
     afc:   70 e0           ldi r23, 0x00   ; 0
     afe:   89 ea           ldi r24, 0xA9   ; 169
     b00:   90 e0           ldi r25, 0x00   ; 0
     b02:   64 d9           rcall   .-3384      ; 0xfffffdcc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     b04:   10 93 ac 00     sts 0x00AC, r17 
     b08:   89 ea           ldi r24, 0xA9   ; 169
     b0a:   90 e0           ldi r25, 0x00   ; 0
     b0c:   ee de           rcall   .-548       ; 0x8ea
     b0e:   1f 91           pop r17
     b10:   08 95           ret

What is going on in the address b02 ?. Is this a compiler bug, is this a bug
of 
objdump?

Thanks
    Klaus

P.S.
All software is actually downloaded from combio.de/avr as binary for linux
avr-gcc is v3.0.2
binutils 2.11.2
libc is avr-libc-20011029







-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

avr-gcc-list at http://avr1.org



reply via email to

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