From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,353213c6ba11774a X-Google-Attributes: gid1164f8,public From: Emmanuel Choquet Subject: Re: DEC Unix 4.0 IEEE floating point on Alpha Date: 1997/07/24 Message-ID: <33D7019F.8A@cica.fr>#1/1 X-Deja-AN: 258438898 References: <5r5qt6$gd8@crcnis3.unl.edu> <33D6C4C2.63B7@EasyInternet.net> Organization: IC/S&C Reply-To: ics@cica.fr Newsgroups: comp.sys.dec Paul DeMone wrote: > > James Nau wrote: > > > > Hi all, > > > > It looks like a byte endianess problem to me. The Alpha runs in little > endian mode (like VAX and x86) while 68K, SPARC, and non-DEC MIPS based > workstations run in big endian mode. > > You could write FP values to a file in big endian order on your Alpha > if you alias a char array over the FP value in memory and pick up the > bytes in reverse order and write them individually to your file There > are probably more elegent ways of doing this... > if you use FORTRAN from Digital, there are options to automatically convert the endianism while reading on the fly from a file. -- Emmanuel Choquet Informatique Client/Serveur & Communication _/ _/ _/ _/_/_/ _/ _/_/_/ _/ _/ _/ _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ _/ _/_/_/ _/ _/_/_/ ics@cica.fr c/o Cica Tel: (33) 4 92.94.23.50 2229, route des cretes fax: (33) 4 92.94.23.54 06560 Sophia-Antipolis