From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 32131 invoked from network); 3 Apr 1998 17:27:55 -0000 Received: from mail.virginia.edu (128.143.2.9) by mail2.redhat.com with SMTP; 3 Apr 1998 17:27:55 -0000 Received: from ares.cs.virginia.edu by mail.virginia.edu id aa03830; 3 Apr 98 12:27 EST Received: from adder.cs.Virginia.EDU (adder.cs.Virginia.EDU [128.143.137.27]) by ares.cs.Virginia.EDU (8.8.5/8.8.5) with ESMTP id MAA09389 for ; Fri, 3 Apr 1998 12:27:54 -0500 (EST) From: Greg Lindahl Received: (from lindahl@localhost) by adder.cs.Virginia.EDU (8.7.5/8.7.3) id MAA21921 for axp-list@redhat.com; Fri, 3 Apr 1998 12:27:53 -0500 (EST) Date: Fri, 3 Apr 1998 12:27:53 -0500 (EST) Message-Id: <199804031727.MAA21921@adder.cs.Virginia.EDU> X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: axp-list@redhat.com Subject: Re: OFF-TOPIC: little-endian vs. big-endian conversion > 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. Is this an unformatted fortran file? In which case, the format is: record length data repeat record length On the SGI and Digital Unix, the record length is a 32 bit int. On the latest f2c libraries, it's 64 bits. You have to account for this. -- g