From owner-freebsd-hackers Mon Nov 20 7:52:28 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from pro.lookanswer.com (unknown [195.66.202.99]) by hub.freebsd.org (Postfix) with SMTP id AA65E37B479 for ; Mon, 20 Nov 2000 07:52:15 -0800 (PST) Received: (qmail 51601 invoked by uid 1001); 20 Nov 2000 15:51:33 -0000 From: Alex Koshterek Reply-To: havoc@lookanswer.com To: Thomas Moestl , freebsd-hackers@FreeBSD.ORG Subject: Re: Byte order? Date: Mon, 20 Nov 2000 17:47:47 +0200 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain; charset="us-ascii" References: <00112017175200.47740@pro.lookanswer.com> <20001120164006.A1624@crow.dom2ip.de> In-Reply-To: <20001120164006.A1624@crow.dom2ip.de> MIME-Version: 1.0 Message-Id: <00112017513301.47740@pro.lookanswer.com> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > This program gets it wrong. When the last byte of a long is set after the long was > set to 1, we have a big endian architecture (the "little" end is at the 4th byte, > so the "big end" is at the 1st byte). > The x86 architecture _is_ little endian. > What? on x86 long a =1 in memory is a 01 00 00 00 Lesser significant byte is first and most significant is last To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message