bluesky idea: __attribute__ (netorder)

Martin von Loewis martin@mira.isdn.cs.tu-berlin.de
Sat Sep 5 19:08:00 GMT 1998


> | Perhaps __a__ ({big,little}endian) might make more sense...
> 
> __a__ (network) makes more sense as it would make the
> source code portable between different endian machines
> without changes or the need of #ifdef's.

Network byte order *is* big-endian. I do know applications that could
make use of __a__((little_endian)) as well (an NTFS driver comes to
mind :-).

Regards,
Martin



More information about the Gcc mailing list