bluesky idea: __attribute__ (netorder)
Jeffrey A Law
law@cygnus.com
Mon Sep 7 19:09:00 GMT 1998
In message < 19980907100412.G7656@tantalophile.demon.co.uk >you write:
> On Sun, Sep 06, 1998 at 05:59:22PM -0700, Richard Henderson wrote:
> > On Sun, Sep 06, 1998 at 11:02:13AM -0400, Tim Hollebeek wrote:
> > > There are hundreds of ways to do this that do not include modifying
> > > the compiler and writing nonstandard C/C++. For example:
> >
> > Yes, and I'd agree if there weren't quite a few machines that can do
> > byte swapping with special instructions, either in parallel with a
> > load, or just in a register.
>
> Please note you can use still use inline __asm__ in your version of
> ntohl etc.
Yes. Though it would be to our advantage to start thinking about the
kinds of extensions we need to better support the machines Richard
referrs to (and in general ways to support DSP & MMX classes of
instructions). Plain and simple C just doesn't cut it.
jeff
More information about the Gcc
mailing list