[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Efficient htons/swap16 or htonl/swap32 inplace?
From: |
Jesper Hansen |
Subject: |
Re: [avr-gcc-list] Efficient htons/swap16 or htonl/swap32 inplace? |
Date: |
Sat, 18 Aug 2001 12:09:58 +0200 |
> At 8:29 +0800 17/8/01, Peter N Lewis wrote:
>
> >Is there any way to convince the compiler to generate:
> >
> > ldd r20,Y+1
> > ldd r21,Y+2
> > std Y+1,r21
> > std Y+2,r22
>
> No takers for how to do this? I expected there would be lots of
> efficiency nuts on this list! ;-)
Perhaps the effieciency nuts are writing their code in assembler ;-)
/Jesper
http:/www.yampp.com
> Thanks for any ideas.
> Peter.
> PS: Important safety tip - don't allocate 4 32-byte structs,
> including one on the stack when running on a 4433 with 128 bytes of
> RAM!
> --
> <http://www.interarchy.com/> <ftp://ftp.interarchy.com/interarchy.hqx>
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list