From: ps@ocisgi7.unizh.ch (Serge Pachkovsky)
Subject: Re: DEC / SGI binary files.
Date: 1997/10/31 [thread overview]
Message-ID: <63c8uj$63t@rzunews.unizh.ch> (raw)
In-Reply-To: 3459A234.CC3EDE4F@afmb.cnrs-mrs.fr
Anne-Gael Inisan (inisan@afmb.cnrs-mrs.fr) wrote:
: Hello !
: This program creates a binary file, and my problem is that those two binary
: files (created one on SGI, the other on DEC) differ: I can't transfer the file
: from a machine to the other. That's a pain for my customers who have
: heterogenous networks.
: I already assumed that the alpha is a 64 bits machine, the SGI 32. The two
: binary files have the same number of bytes. I tried to 'swapbyte' one file
: as well.
: Can anyone explain me this ? Is there a solution ?
Try compiling your DEC executable with -convert big_endian.
Generally, you should *never* expect binary files to be compatible between
different machines (and even between different compilers on the same OS) -
unless you go to the (quite considerable) effort of designing your files
to be portable in the first place.
/Serge.P
--
Russian guy from the Zurich university...
next prev parent reply other threads:[~1997-10-31 5:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-10-31 5:00 DEC / SGI binary files Anne-Gael Inisan
1997-10-31 5:00 ` Serge Pachkovsky [this message]
1997-10-31 5:00 ` Anne-Gael Inisan
1997-11-03 5:00 ` Shankar Unni
1997-10-31 5:00 ` Dirk Bartz
1997-11-04 5:00 ` Michael Maxie
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