On Thu, 19 Feb 2009 19:21:07 +0100
Ruud Vlaming <r...@betaresearch.nl> wrote:

> Are you absolutely sure they are really left out?  I assume they are
> just not shown in the assembly file. Four or more nops are replaced
> by ellipses, but are present allright. Have a close look at the addresses.

Oooops !!!!! Can you see the red on my face ?! ;-)
Indeed you are right, with 4 nops, the assembly looks like this:


fa4:    db 9a           sbi     0x1b, 3 ; 27
...
fb6:    db 98           cbi     0x1b, 3 ; 27
fb8:    08 95           ret

I apologize ! It's just that I didn't know GCC behaved like this, so I wasn't 
watching for it !

> Otherwise you could use 
>   __asm__ volatile(
>     "nop \n\t"
>     "nop \n\t"
>     "nop \n\t"
>     "nop \n\t");
> in which gcc cannot start to optimize.

I take note...



--
Vince, embarassed...


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to