From owner-freebsd-questions@FreeBSD.ORG Mon Feb 4 12:34:30 2008 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 589FC16A418 for ; Mon, 4 Feb 2008 12:34:30 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id DBBE613C459 for ; Mon, 4 Feb 2008 12:34:23 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8) with ESMTP id m14CWlZW007855; Mon, 4 Feb 2008 13:32:47 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8/Submit) with ESMTP id m14CWiUj007852; Mon, 4 Feb 2008 13:32:46 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Mon, 4 Feb 2008 13:32:44 +0100 (CET) From: Wojciech Puchar To: navneet Upadhyay In-Reply-To: <1563a4fd0802040403x2b71eaa1yd3d8f78e7742843b@mail.gmail.com> Message-ID: <20080204133235.C7781@wojtek.tensor.gdynia.pl> References: <1563a4fd0802040403x2b71eaa1yd3d8f78e7742843b@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Endianness of freeBSD 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: Mon, 04 Feb 2008 12:34:30 -0000 > 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