[Patch] C1X threading support

O. Hartmann ohartman at zedat.fu-berlin.de
Mon Dec 19 17:56:12 UTC 2011

On 12/19/11 18:09, Warner Losh wrote:
> On Dec 19, 2011, at 3:57 AM, Poul-Henning Kamp wrote:
>> In message <201112191152.22907.tijl at coosemans.org>, Tijl Coosemans writes:
>>>> Big/Little Endian API ?
>>>> Naah, nobody moves binary data between computers.
>>> Yes, but rather than having the programmer remember when to swap bytes,
>>> it would be better if he could just declare a variable big/little
>>> endian and have the compiler figure it out.
>> You'd think so, wouldn't you ?
> Intel has a compiler that allows one to declare things are big or little endian and then things work.  A certain large router vendor used it to port its software that was big endian only at a very deep layer to Intel x86...
> Linux marks things as beXX or leXX and uses static analysis to prevent mixing.
> There's a lot of prior art for the committee to choose from.
> Warner

A silly question:

How is the other BSD sibbling, NetBSD, dealing with such things? NetBSD
is supposed to run on a trmendous variety of hardware, even a mixture of
bigendian and littleenddian and I'm quite sure they must have overcome
this probleme anyway.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-threads/attachments/20111219/3bc8394b/signature.pgp

More information about the freebsd-threads mailing list