Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jan 2010 15:51:28 -0600
From:      David Kelly <dkelly@hiwaay.net>
To:        Kaya Saman <SamanKaya@netscape.net>
Cc:        FreeBSD-Questions@freebsd.org
Subject:   Re: Endianness
Message-ID:  <20100112215128.GA95072@Grumpy.DynDNS.org>
In-Reply-To: <4B4CE9B1.4040508@netscape.net>
References:  <b025ceb71001121251m77ae380fs129699f7bd2a896e@mail.gmail.com> <20100112210427.GB18673@Grumpy.DynDNS.org> <4B4CE9B1.4040508@netscape.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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.

-- 
David Kelly N4HHE, dkelly@HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.



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