[Top][All Lists]

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

[avr-gcc-list] Bug report

From: Kang Tin LAI
Subject: [avr-gcc-list] Bug report
Date: Thu, 19 Apr 2001 22:20:42 +0800

May be there was a report before.


char adc_flag = NOT_RDY;        /* external, (i.e., in SRAM) */

while (adc_flag == NOT_RDY);    /* wait for interrupt to set to RDY */

asm generated:

        lds r24,adc_flag        <- value is load to R24 only once
        tst r24                 <- dead loop tests dead value
        breq .L33               <- never quit the loop

Label location .L33: should be before lds instruction?

avr-gcc is lastest snapshot, AVR8515, -O2 (perhaps problem is from
here, the optimizer? Let test later)


reply via email to

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