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

[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" : : );
> }




reply via email to

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