Skip to Content.
Sympa Menu

freetds - Re: BIGENDIAN

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Sam Sam" <s4m AT lycos.com>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: BIGENDIAN
  • Date: Wed, 11 Jul 2001 13:18:08 -0700


>It's the byte order for integers.
>
>Intel is little endian, meaning that binary 1 is represented as
>0x01000000 for a 32 bit int, while Sun Sparc is big endian, so 1 is
>represented as 0x00000001.
>
isn't 0x01000000 means 2^6=64 while 0x00000001 means 2^0=1 ??
CMIIW please... why intel use 0x01000000 as representation of 1 ??

cheers,
Sam


Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/

From s4m AT mailcity.com Wed Jul 11 16:23:27 2001
Return-Path: <s4m AT mailcity.com>
Received: from mailcity.com ([209.185.123.188]) by franklin.oit.unc.edu with
SMTP (Lyris List Manager SOLARIS/SPARC version 4.0); Wed, 11 Jul 2001
16:23:23 -0400
Received: from Unknown/Local ([?.?.?.?]) by mailcity.com; Wed Jul 11 13:22:54
2001
To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
Date: Wed, 11 Jul 2001 13:22:54 -0700
From: "Sam Sam" <s4m AT lycos.com>
Message-ID: <EFNKKMDHAJDNBAAA AT mailcity.com>
Mime-Version: 1.0
X-Sent-Mail: off
Reply-To: s4m AT mailcity.com
X-Expiredinmiddle: true
X-Mailer: MailCity Service
Subject: Re: BIGENDIAN
X-Sender-Ip: 202.155.89.122
Organization: Lycos Mail (http://mail.lycos.com:80)
Content-Type: text/plain; charset=us-ascii
Content-Language: en
Content-Length: 577
Content-Transfer-Encoding: 7bit


>It refers to the order in which the computer stores the most significant
>byte of a multibyte data type (if you're a programmer think of word, longint
>etc). The most significant byte is either at the big end or the little end.
>Intel machines are little-endian, Suns and PPC machines are big->endian.

hmmm...
ok.. I got a little bit clearer..
is 11 in intel 0x01010000 ??
is 11 in sun 0x00000101 ??
if that right I think I got an explanation by that.. =))

cheers,
Sam




Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/




Archive powered by MHonArc 2.6.24.

Top of Page