Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: jeffyb@wam.umd.edu (Jeffrey S Brush)
Subject: Re: binary files in dec-alpha
Date: 23 Nov 1994 13:19:11 GMT	[thread overview]
Message-ID: <3avfgf$517@cville-srv.wam.umd.edu> (raw)
In-Reply-To: 3at6lr$fv@sifon.cc.mcgill.ca

ricardo gutfraind (gutfrain@ruiz.civil.mcgill.ca) wrote:

: Hi,

: I tried to read in a SGI ( Indigo II)  binary files I generated in a  
: dec-alpha running OSF/1. The files were made using the function fwrite of  
: C.
: There exists some incompatibility  and these files cannot be read by the  
: Indigo II.
: Is anybody aware what  the problem  can be? 

: Thanks
: Ricardo Gutfraind
: McGill University
: Montreal

Ricardo:

More data please!!  Did you use fopen(fname, "b") on each platform?
Can you read the file in the Alpha?  Is there a byte-swap issue
between the platforms (try writing a file with 'ABCD' as the first
4 bytes, then read them into a long and see what order they have)?
Is it float data, and if so are the FP representations different?

I've never had a problem like you described that wasn't due to one
of the above 'boo-boos'.  OTH, I've never been on an SGI machine...

-- Jeff Brush


      reply	other threads:[~1994-11-23 13:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-11-22 16:36 binary files in dec-alpha ricardo gutfraind
1994-11-23 13:19 ` Jeffrey S Brush [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