Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: kilgallen@eisner.decus.org (Larry Kilgallen)
Subject: Re: Byte ordering on VAX and Alpha
Date: 1995/07/19	[thread overview]
Message-ID: <1995Jul19.195232.10631@eisner> (raw)
In-Reply-To: 3ue04p$mmp@pheidippides.axion.bt.co.uk

In article <3ue04p$mmp@pheidippides.axion.bt.co.uk>, thomasgd@boat.bt.com (Greg Thomas) writes:
> A simple question ...
> Are the byte orderings on the VAX and Alpha platforms different?
> 
> Thanks for any replies,

A simple reply:

	No, there is no difference.

A complicated reply:

	Since the Alpha instruction set does not have byte load and
	store from memory, the base machine is neither big-endian
	or little-endian.  The compilers for VMS create a little-
	endian behaviour (same as VAX).  I believe the compilers
	for OSF and WNT do the same, but I could be wrong.  I have
	not the faintest idea about the compiler for Linux.

	There is a slight bias in the Alpha instruction set toward
	little endian, as setting up for certain byte extraction
	operations takes the compiler an extra instruction if you
	want big-endian.  That instruction might be in an otherwise
	unused instruction slot anyway, so perhaps for your most
	critical inner loop there would be no difference.

Larry Kilgallen



  parent reply	other threads:[~1995-07-19  4:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-07-17  4:00 Byte ordering on VAX and Alpha Greg Thomas
1995-07-17  4:00 ` oberman
1995-07-17  4:00   ` Ron Fox
1995-07-18  4:00 ` Ron Natalie
1995-07-18  4:00   ` Carl J. Appellof
1995-07-18  4:00     ` Ron Natalie
1995-07-18  4:00   ` Ross Alexander
1995-07-18  4:00     ` Ron Natalie
1995-07-20  4:00       ` Burkhard Neidecker-Lutz
1995-07-19  4:00 ` Larry Kilgallen [this message]
1995-07-23  4:00   ` Steve Peltz
1995-07-26  4:00     ` Larry Kilgallen
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