From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8eb4,e8fe98423fef13f5,start X-Google-Attributes: gidf8eb4,public X-Google-Thread: fee84,e8fe98423fef13f5,start X-Google-Attributes: gidfee84,public From: Anne-Gael Inisan Subject: Re: DEC / SGI binary files. Date: 1997/10/31 Message-ID: <3459E1AA.7DF4541F@afmb.cnrs-mrs.fr>#1/1 X-Deja-AN: 286175485 References: <3459A234.CC3EDE4F@afmb.cnrs-mrs.fr> <63c8uj$63t@rzunews.unizh.ch> Organization: Universites d' Aix en Provence Newsgroups: comp.unix.osf.osf1,comp.sys.sgi.apps Serge Pachkovsky wrote: > 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. > Unfortunately, it doesn't work. Thanks a lot anyway. > 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 Yes, should be. I'd better not loose too much time. Thanks. Anne-Gael.