From owner-freebsd-questions@FreeBSD.ORG Tue Jan 12 22:05:36 2010 Return-Path: Delivered-To: FreeBSD-Questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E39D9106568D for ; Tue, 12 Jan 2010 22:05:36 +0000 (UTC) (envelope-from rfarmer@predatorlabs.net) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26]) by mx1.freebsd.org (Postfix) with ESMTP id A9ED98FC0A for ; Tue, 12 Jan 2010 22:05:36 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 3so58326qwe.7 for ; Tue, 12 Jan 2010 14:05:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.224.5.205 with SMTP id 13mr17983571qaw.125.1263333927004; Tue, 12 Jan 2010 14:05:27 -0800 (PST) X-Originating-IP: [128.95.133.85] In-Reply-To: <20100112215128.GA95072@Grumpy.DynDNS.org> References: <20100112210427.GB18673@Grumpy.DynDNS.org> <4B4CE9B1.4040508@netscape.net> <20100112215128.GA95072@Grumpy.DynDNS.org> Date: Tue, 12 Jan 2010 14:05:26 -0800 Message-ID: From: Rob Farmer To: FreeBSD-Questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Kaya Saman Subject: Re: Endianness X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jan 2010 22:05:37 -0000 On Tue, Jan 12, 2010 at 1:51 PM, David Kelly 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" >