Re: [avr-libc-dev] [bug #21623] boot.h: Use the "z" register constraint

2007-11-21 Thread Shaun Jackman
(cc'ing gcc@gcc.gnu.org) On Nov 21, 2007 2:38 AM, Wouter van Gulik <[EMAIL PROTECTED]> wrote: > Also consider the fuse bit get routine. This scheme gives more knowledge > to the compiler, unfortunately gcc fails to see the loading of r31 can > done once: > > using this: > > ===

Re: [avr-libc-dev] [bug #21623] boot.h: Use the "z" register constraint

2007-11-21 Thread Wouter van Gulik
Shaun Jackman wrote: I have also noticed that a series of p = buf; *p++; *p++ *p++; get's optimized to buf[0]; buf[1]; buf[2]; which may be faster on some architectures, but loading constants is quite expensive on the AVR. Phew, I just tried this: extern unsig