From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,dc4c97bbf0b781e5 X-Google-Attributes: gid1164f8,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: Byte ordering on VAX and Alpha Date: 1995/07/19 Message-ID: <1995Jul19.195232.10631@eisner>#1/1 X-Deja-AN: 106584694 references: <3ue04p$mmp@pheidippides.axion.bt.co.uk> organization: LJK Software newsgroups: comp.sys.dec 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