From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 22473 invoked from network); 3 Apr 1998 17:22:44 -0000 Received: from jeter.acpub.duke.edu (152.3.233.10) by mail2.redhat.com with SMTP; 3 Apr 1998 17:22:44 -0000 Received: from godzilla2.acpub.duke.edu (godzilla2.acpub.duke.edu [152.3.233.43]) by jeter.acpub.duke.edu (8.8.5/Duke-4.5.3) with ESMTP id MAA21897; Fri, 3 Apr 1998 12:15:07 -0500 (EST) Received: (from janice@localhost) by godzilla2.acpub.duke.edu (8.8.5/Duke-4.4) id MAA20330; Fri, 3 Apr 1998 12:15:06 -0500 (EST) Date: Fri, 3 Apr 1998 12:15:05 -0500 (EST) From: Janice McCarthy To: axp-list@redhat.com Subject: OFF-TOPIC: little-endian vs. big-endian conversion Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hello all! I know this is off-topic, but I am getting desperate. I have some binary files that were generated on an sgi, but I need to read them on my Alpha (UDB with linux 2.0.20). I have learned that the sgi is big-endian, where the alpha is little-endian. The files are in the following format: 1 int followed by 52 doubles - repeated 20,000 times. I wrote a conversion program to reverse the bytes, but it doesn't seem to work. Am I missing something? Is there more of a difference between the two conventions? Can someone at least point me in the right direction? There was at one time a mini-how-to, but it seems to have disappeared! Thanks in advance, Janice McCarthy janice@acpub.duke.edu