This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bluesky idea: __attribute__ (netorder)
- To: Jamie Lokier <egcs at tantalophile dot demon dot co dot uk>
- Subject: Re: bluesky idea: __attribute__ (netorder)
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 07 Sep 1998 14:11:37 -0600
- cc: Richard Henderson <rth at cygnus dot com>, Tim Hollebeek <tim at wagner dot princeton dot edu>, carlo at runaway dot xs4all dot nl, weejock at ferret dot lmh dot ox dot ac dot uk, egcs at cygnus dot com
- Reply-To: law at cygnus dot com
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