Date: Mon, 19 Dec 2011 18:37:33 +0100 From: "O. Hartmann" <ohartman@zedat.fu-berlin.de> To: Warner Losh <imp@bsdimp.com> Cc: threads@freebsd.org, Poul-Henning Kamp <phk@phk.freebsd.dk>, freebsd-arch@freebsd.org Subject: Re: [Patch] C1X threading support Message-ID: <4EEF765D.4090300@zedat.fu-berlin.de> In-Reply-To: <AC4BCD04-6555-4AD1-BBCD-3C706852ECCF@bsdimp.com> References: <58923.1324292241@critter.freebsd.dk> <AC4BCD04-6555-4AD1-BBCD-3C706852ECCF@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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@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. Regrads, Oliver [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQEcBAEBAgAGBQJO73ZiAAoJEOgBcD7A/5N8Yh4IALIrJvxbQWKmE1/SmOqDz84c WyBoUP6O3Rj816VFXM17Mda/YTG3+L11hYIVqIo/tKZO4knyj11IZ2nZUoiNfc9v PaULHHEVBNw7cNOa/fLUiV7H78dUL7galbEKvhMgKrT9Nbzh06UxlUZmOCZlhZGX 3PvG95m9STJb0Ex2UJnUPim/NmoNDvTOxB8mZjwSfjU89A/nk5a23SlOdsRNFJka XCjWejy0B9CMHGOWMSW/eJ46ePrM6gxpoIDA4vGmIaOlg7jGc7umi1e4dunCMZgY Xbl4gOhixbqaybXrvttRkrWENaA+6uqV5APY17hytK8Tk3sa0PgJQ20DNChrNzA= =FZfG -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EEF765D.4090300>
