From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e8fe98423fef13f5 X-Google-Attributes: gidfee84,public X-Google-Thread: 10fdc2,bdabdc60601d6fdf,start X-Google-Attributes: gid10fdc2,public X-Google-Thread: f8eb4,e8fe98423fef13f5 X-Google-Attributes: gidf8eb4,public From: Dirk Bartz Subject: Re: DEC / SGI binary files. Date: 1997/10/31 Message-ID: <3459DFFB.41C6@gris.uni-tuebingen.de>#1/1 X-Deja-AN: 286176926 References: <3459A234.CC3EDE4F@afmb.cnrs-mrs.fr> Organization: University of Tuebingen Newsgroups: comp.unix.osf.osf1,comp.sys.sgi.bugs,comp.sys.sgi.apps Anne-Gael Inisan wrote: > > Hello ! > > I've got a compatibility problem. I have traditionally compiled my > program > on a SGI IRIX 6.2 (flag -64), and newly compiled the same code on a DEC > alpha UNIX 4.0 (this is miraculous though). > 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. I'm not sure if I understand what you try to do. If you assume that SGI code is binary compatible to DEC alpha code, this assumption is the source of your problem. They are *not*. If you change to another platform with different processors (e.g. Sun Ultra, HP PA), programs are not binary compatible. You need to compile them again (which already introduces some headaches). Even same processors (actually processors of the same vendor) using differens OS-versions introduce several problems. Hope that helps, dirk ======== 8< ======= 8< ======= 8< ======= 8< ======= 8< ======= 8< ======== Dirk Bartz University of Tuebingen Phone: +49-7071/29-76361 Email: bartz@gris.uni-tuebingen.de Fax: +49-7071/29-5466 WWW: http://www.gris.uni-tuebingen.de/~bartz