From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10fdc2,bdabdc60601d6fdf X-Google-Attributes: gid10fdc2,public X-Google-Thread: fee84,e8fe98423fef13f5 X-Google-Attributes: gidfee84,public X-Google-Thread: f8eb4,e8fe98423fef13f5 X-Google-Attributes: gidf8eb4,public From: ps@ocisgi7.unizh.ch (Serge Pachkovsky) Subject: Re: DEC / SGI binary files. Date: 1997/10/31 Message-ID: <63c8uj$63t@rzunews.unizh.ch>#1/1 X-Deja-AN: 286940422 References: <3459A234.CC3EDE4F@afmb.cnrs-mrs.fr> Followup-To: comp.unix.osf.osf1,comp.sys.sgi.apps Organization: University of Zurich, Switzerland Newsgroups: comp.unix.osf.osf1,comp.sys.sgi.bugs,comp.sys.sgi.apps 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...