From: Greg Lindahl <lindahl@cs.virginia.edu>
To: axp-list@redhat.com
Subject: Re: OFF-TOPIC: little-endian vs. big-endian conversion
Date: Fri, 3 Apr 1998 12:27:53 -0500 (EST) [thread overview]
Message-ID: <199804031727.MAA21921@adder.cs.Virginia.EDU> (raw)
> 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
next reply other threads:[~1998-04-03 17:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-03 17:27 Greg Lindahl [this message]
1998-04-03 17:51 ` OFF-TOPIC: little-endian vs. big-endian conversion Michal Jaegermann
-- strict thread matches above, loose matches on Subject: below --
1998-04-03 17:54 Greg Lindahl
1998-04-03 17:15 Janice McCarthy
1998-04-03 17:33 ` Uncle George
1998-04-03 17:54 ` Alvin Starr
1998-04-06 12:39 ` Mike Howard
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox