Endianness of freeBSD

Ivan Voras ivoras at freebsd.org
Mon Feb 4 12:18:23 UTC 2008


> 1. Is FreeBSD little Endian like windows?
>=20
> 2. Linux is Big endian?
>=20
> wrote a code int i =3D 1;    if((i >> 1) =3D=3D 0) little else big
> got little on all platforms bsd,linux,windows.
>=20
> *Does endianness depends on OS or the hardware?*

It depends on the hardware.
http://en.wikipedia.org/wiki/Endianess


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080204/996ef4a1/signature.pgp


More information about the freebsd-questions mailing list