From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,6e0055097057e19a,start X-Google-Attributes: gid111c93,public From: h0l0gRaM Subject: BIG or LOW endian? Date: 2000/08/10 Message-ID: <3992BB5C.7646E238@saunalahti.fi>#1/1 X-Deja-AN: 656771164 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsmaster@saunalahti.fi X-Trace: tron.sci.fi 965918017 21468 195.197.43.74 (10 Aug 2000 14:33:37 GMT) Organization: SAUNALAHDEN asiakas Mime-Version: 1.0 NNTP-Posting-Date: 10 Aug 2000 14:33:37 GMT Newsgroups: comp.os.linux.alpha Now ,this is interesting. Are Alphas big or low endian machines ? When I run this perl script : perl -e ' if(pack("S", 1) eq pack("n", 1)){ print "Big-endian\n"; } else{ print "Little-endian\n"; } I get Little-endian ,I supposed that Alphas are big-endian computers like Sun Sparc's. Also ,many program's autoconf configure script shows that Alpha is low-endian. Computer is Alpha XL300 ,21164(ev5) Distro is RH 6.0 with some 6.2 updates. -- Reading is thinking with someone else's head instead of one's own.