tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu>
Subject: SUMMARY: [TRU64]  Endian-ness of Alpha
Date: Tue, 19 Oct 2004 09:15:30 +0200	[thread overview]
Message-ID: <4174BF12.5040502@ev.co.yu> (raw)
In-Reply-To: <20041019082425.A16894@shiva.cps.unizar.es>

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 <sys/types.h>
#include <sys/param.h>
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.


      parent reply	other threads:[~2004-10-19  7:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-19  6:01 Endian-ness of Alpha Nikola Milutinovic
     [not found] ` <20041019082425.A16894@shiva.cps.unizar.es>
2004-10-19  7:15   ` Nikola Milutinovic [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox