Endianness

2010-01-12 Thread Rob Farmer
I'm trying to create a port of an application which only works on little endian systems and I'm trying to figure out how to set ONLY_FOR_ARCHS. Wikipedia says PowerPC, Sparc, and IA64 are bi-endian and the OS chooses the mode. I'm not familiar with these platforms - I'm sure it has been answered

Re: Endianness

2010-01-12 Thread David Kelly
On Tue, Jan 12, 2010 at 12:51:00PM -0800, Rob Farmer wrote: I'm trying to create a port of an application which only works on little endian systems and I'm trying to figure out how to set ONLY_FOR_ARCHS. Wikipedia says PowerPC, Sparc, and IA64 are bi-endian and the OS chooses the mode. I'm

Re: Endianness

2010-01-12 Thread Kaya Saman
David Kelly wrote: On Tue, Jan 12, 2010 at 12:51:00PM -0800, Rob Farmer wrote: I'm trying to create a port of an application which only works on little endian systems and I'm trying to figure out how to set ONLY_FOR_ARCHS. Wikipedia says PowerPC, Sparc, and IA64 are bi-endian and the OS

Re: Endianness

2010-01-12 Thread Lowell Gilbert
Kaya Saman samank...@netscape.net writes: David Kelly wrote: On Tue, Jan 12, 2010 at 12:51:00PM -0800, Rob Farmer wrote: I'm trying to create a port of an application which only works on little endian systems and I'm trying to figure out how to set ONLY_FOR_ARCHS. Wikipedia says

Re: Endianness

2010-01-12 Thread Rolf G Nielsen
On 2010-01-12 22:04, David Kelly wrote: On Tue, Jan 12, 2010 at 12:51:00PM -0800, Rob Farmer wrote: I'm trying to create a port of an application which only works on little endian systems and I'm trying to figure out how to set ONLY_FOR_ARCHS. Wikipedia says PowerPC, Sparc, and IA64 are

Re: Endianness

2010-01-12 Thread David Kelly
On Tue, Jan 12, 2010 at 11:29:21PM +0200, Kaya Saman wrote: David Kelly wrote: On Tue, Jan 12, 2010 at 12:51:00PM -0800, Rob Farmer wrote: [...] I'm sure it has been answered somewhere, but I can't find it - which FreeBSD archs are little/big endian? Thanks. i386 is little endian. Would

Re: Endianness

2010-01-12 Thread Rob Farmer
On Tue, Jan 12, 2010 at 1:51 PM, David Kelly dke...@hiwaay.net wrote: On Tue, Jan 12, 2010 at 11:29:21PM +0200, Kaya Saman wrote: David Kelly wrote: On Tue, Jan 12, 2010 at 12:51:00PM -0800, Rob Farmer wrote: [...] I'm sure it has been answered somewhere, but I can't find it - which

Re: Endianness

2010-01-12 Thread Rob Farmer
On Tue, Jan 12, 2010 at 1:47 PM, Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org wrote: Kaya Saman samank...@netscape.net writes: David Kelly wrote: On Tue, Jan 12, 2010 at 12:51:00PM -0800, Rob Farmer wrote: I'm trying to create a port of an application which only works on little

Re: Endianness

2010-01-12 Thread Lowell Gilbert
in tinderbox it didn't work, so I can't really do that. I didn't mean to imply that you need to check, just that it's likely to not work (regardless of endianness) and you should be aware of that. powerpc and sparc aren't tier-1 architectures anyway, so ordinary users are unlikely to run into them

Re: Endianness

2010-01-12 Thread RW
On Tue, 12 Jan 2010 12:51:00 -0800 Rob Farmer rfar...@predatorlabs.net wrote: I'm trying to create a port of an application which only works on little endian systems and I'm trying to figure out how to set ONLY_FOR_ARCHS. Wikipedia says PowerPC, Sparc, and IA64 are bi-endian and the OS

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. http://en.wikipedia.org

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 ___ freebsd

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

UFS endianness

2005-04-08 Thread Jeremy Baggs
I was just wondering if anyone was working on support for NeXT/Apple UFS file systems under FreeBSD. Jeremy ___ freebsd-questions@freebsd.org mailing list