Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jan 2010 14:05:26 -0800
From:      Rob Farmer <rfarmer@predatorlabs.net>
To:        FreeBSD-Questions@freebsd.org
Cc:        Kaya Saman <SamanKaya@netscape.net>
Subject:   Re: Endianness
Message-ID:  <b025ceb71001121405q3f910d0td4b7ec288e98f14c@mail.gmail.com>
In-Reply-To: <20100112215128.GA95072@Grumpy.DynDNS.org>
References:  <b025ceb71001121251m77ae380fs129699f7bd2a896e@mail.gmail.com> <20100112210427.GB18673@Grumpy.DynDNS.org> <4B4CE9B1.4040508@netscape.net> <20100112215128.GA95072@Grumpy.DynDNS.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 12, 2010 at 1:51 PM, David Kelly <dkelly@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
>> >>FreeBSD archs are little/big endian? Thanks.
>>
>> >i386 is little endian. Would expect ia64 to be the same.
>>
>> SPARC is big endian. Or at least it used to be.....
>>
>> Power4,5,6 are all big endian too if I'm not mistaken.
>>
>> Correct me if I'm wrong but anything based around the CISC
>> architecture is big endian.
>
> Believe the O.P. is asking, "What endian is FreeBSD on these
> architectures?"
>
> If I was making an application that needed endian information then I'd
> look in arpa/inet.h and machine/endian.h to discover what I was running
> on.

Ah - thanks for the pointer - I was looking at /src/sys/sys/endian.h
rather than the machine specific versions, which is why I didn't get
anything out of it. For the archives, it appears that amd64, arm,
i386, ia64, and pc98 are little endian.

-- 
Rob Farmer
>
> --
> David Kelly N4HHE, dkelly@HiWAAY.net
> ========================================================================
> Whom computers would destroy, they must first drive mad.
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b025ceb71001121405q3f910d0td4b7ec288e98f14c>