From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nikola Milutinovic Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: [TRU64] Endian-ness of Alpha Date: Tue, 19 Oct 2004 09:15:30 +0200 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <4174BF12.5040502@ev.co.yu> References: <4174ADB2.7090904@ev.co.yu> <20041019082425.A16894@shiva.cps.unizar.es> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1098170107 12255 80.91.229.6 (19 Oct 2004 07:15:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Oct 2004 07:15:07 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Oct 19 09:14:53 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1CJoCq-0003jk-00 for ; Tue, 19 Oct 2004 09:14:53 +0200 Original-Received: (qmail 9610 invoked by uid 5); 19 Oct 2004 07:14:13 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 9595 invoked by uid 49501); 19 Oct 2004 07:14:13 -0000 Original-Received: from Nikola.Milutinovic@ev.co.yu by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.4.119):SA:0(-4.9/5.0):. Processed in 0.883552 secs); 19 Oct 2004 07:14:13 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 19 Oct 2004 07:14:12 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I5T00AW5LFMOR@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 19 Oct 2004 03:14:11 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute1.cind.ornl.gov by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0I5T00I02LFASC@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 19 Oct 2004 03:14:01 -0400 (EDT) Original-Received: from Firewall.ev.co.yu (gateway.ev.co.yu [194.247.214.130]) by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) with SMTP id <0I5T00FGRLF8KK@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 19 Oct 2004 03:13:58 -0400 (EDT) Original-Received: by Firewall.ev.co.yu; (5.65v4.0/1.3/10May95) id AA15465; Tue, 19 Oct 1999 09:17:47 +0200 Original-Received: from [192.168.61.110] (Brigitte.ev.co.yu [192.168.61.110]) by Uprava.ev.co.yu (8.12.10/8.12.10) with ESMTP id i9J7C2KD005764 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 19 Oct 2004 09:12:05 +0200 (MET DST) In-reply-to: <20041019082425.A16894@shiva.cps.unizar.es> Original-To: Tru64 UNIX Managers X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Envelope-From: X-ORNL-Envelope-To: tru64-unix-managers@sws1.ctd.ornl.gov rfc822;tru64-unix-managers@ornl.gov X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-Virus-Scanned: by amavisd-milter (http://www.amavis.org/) Xref: main.gmane.org gmane.os.tru64.managers:7685 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:7685 J.A. Gutierrez wrote: > On Tue, Oct 19, 2004 at 08:01:22AM +0200, Nikola Milutinovic wrote: > >>Hi all. >> >>One quck question: Is Alpha Big or Little Endian machine? > > little endian As I suspected.. >>I tested it a bit and found out that compiler, on it's own believes the >>Alpha to be Big Endian. > > are you sure? This is the test.c: #if BYTE_ORDER != BIG_ENDIAN # error It is not big endian #endif #if BYTE_ORDER == BIG_ENDIAN # error It is big endian #endif #include #include int main () { #if BYTE_ORDER != BIG_ENDIAN not big endian; #endif #if BYTE_ORDER == BIG_ENDIAN is big endian; #endif #if BYTE_ORDER != BIG_ENDIAN # error It is not big endian - AFTER #endif #if BYTE_ORDER == BIG_ENDIAN # error It is big endian - AFTER #endif return 0; } cc: Error: test.c, line 8: #error It is big endian #error It is big endian -^ cc: Error: test.c, line 20: In this declaration, "not" must specify a type. not big endian; --^ cc: Error: test.c, line 27: #error It is not big endian - AFTER #error It is not big endian - AFTER In any case, endian-ness is OK in Heimdal, then. I'll package it and wait for a reply from Heimdal bugs. Nix.