[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] GCC 3.0.2 unsigned int bug?
From: |
Francisco T. A. Silva |
Subject: |
Re: [avr-gcc-list] GCC 3.0.2 unsigned int bug? |
Date: |
Mon, 17 Dec 2001 22:56:26 -0200 |
Hi Chris,
You may even substitute ";" for "nop" and you gain one word.
BTW asm(";"); also works and spare your fingers some work :)
Regards,
--
Francisco
> In any case, here's my "improved" loop, suitable for fooling the
optimizer
> today:
>
> void delay(void)
> {
> unsigned int d;
>
> for (d=0x1000; d; d--)
> __asm__ __volatile__ ( "nop" : : );
> }
- Re: [avr-gcc-list] GCC 3.0.2 unsigned int bug?, (continued)
[avr-gcc-list] 4-bit LCD source, Mike Jones, 2001/12/17
Re: [avr-gcc-list] GCC 3.0.2 unsigned int bug?, Dmitry, 2001/12/18
Re: [avr-gcc-list] GCC 3.0.2 unsigned int bug?, Carsten Beth, 2001/12/18
Re: [avr-gcc-list] GCC 3.0.2 unsigned int bug?, john . johnson, 2001/12/17
Re: [avr-gcc-list] GCC 3.0.2 unsigned int bug?,
Francisco T. A. Silva <=