This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bluesky idea: __attribute__ (netorder)



  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]