Re: Endianness of freeBSD

2008-02-04 Thread Heiko Wundram (Beenic)
Am Montag, 4. Februar 2008 13:03:25 schrieb navneet Upadhyay: 1. Is FreeBSD little Endian like windows? FreeBSD endianness depends on the hardware architecture it runs on (as endianness is a hardware characterization). (Very) generally, anything that's related to an Intel CPU is little-endian

Re: Endianness of freeBSD

2008-02-04 Thread Ivan Voras
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.

Re: Endianness of freeBSD

2008-02-04 Thread Wojciech Puchar
Not true. Alpha is big- or little-endian (so, it's bi-endian), depending on how it's booted, and IIRC the Windows NT version running on Alpha used the big-endian mode of the CPU. But I might be mistaken. i had SRM console used netbsd too later, too little endian.

Re: Endianness of freeBSD

2008-02-04 Thread Wojciech Puchar
the Windows NT days, which ran on Alpha workstations which were big-endian. Alpha is little endian. i had alpha 21066 running linux. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To

Endianness of freeBSD

2008-02-04 Thread navneet Upadhyay
1. Is FreeBSD little Endian like windows? 2. Linux is Big endian? wrote a code int i = 1;if((i 1) == 0) little else big got little on all platforms bsd,linux,windows. *Does endianness depends on OS or the hardware?* ** ** *Thanks,* *navneet* ___

Re: Endianness of freeBSD

2008-02-04 Thread Wouter Oosterveld
Endianness depends on the hardware. In internal kernel structures endianness does not matter, if communicating with other machines protocols (usually) define a bitorder. The c-library and/or systemlibrary contains utility functions for conversion. Regards, Wouter Oosterveld 2008/2/4, navneet

Re: Endianness of freeBSD

2008-02-04 Thread Wojciech Puchar
1. Is FreeBSD little Endian like windows? 2. Linux is Big endian? wrote a code int i = 1;if((i 1) == 0) little else big got little on all platforms bsd,linux,windows. *Does endianness depends on OS or the hardware?* on hardware ___

Re: Endianness of freeBSD

2008-02-04 Thread Christian Weisgerber
Heiko Wundram (Beenic) [EMAIL PROTECTED] wrote: Alpha is little endian. i had alpha 21066 running linux. Not true. Alpha is big- or little-endian (so, it's bi-endian), Alpha is little-endian in practice. I've never heard of DEC--or anybody else for that matter--building a big-endian alpha.

Re: Endianness of freeBSD

2008-02-04 Thread Heiko Wundram (Beenic)
Am Montag, 4. Februar 2008 14:30:12 schrieb Wojciech Puchar: the Windows NT days, which ran on Alpha workstations which were big-endian. Alpha is little endian. i had alpha 21066 running linux. Not true. Alpha is big- or little-endian (so, it's bi-endian), depending on how it's booted, and

Re: Endianness of freeBSD

2008-02-04 Thread Enno Davids
On Mon, Feb 04, 2008 at 01:20:14PM +0100, Heiko Wundram (Beenic) wrote: | |As I said above: it depends on the hardware. There is even hardware (ARM, in |particular) which can run in little- or big-endian mode, depending on how it |is initialized. If I recall correctly some of the MIPS chips