Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: furio ercolessi <furio@spin.it>
To: axp-list@redhat.com
Subject: Re: binary data files
Date: Tue, 23 Nov 1999 19:46:19 +0100	[thread overview]
Message-ID: <19991123194619.A18183@spin.it> (raw)
In-Reply-To: <199911230206.RAA10766@ruff.gi.alaska.edu>; from David Covey on Mon, Nov 22, 1999 at 05:06:51PM -0900

On Mon, Nov 22, 1999 at 05:06:51PM -0900, David Covey wrote:
> Hi all,
>     I've been using Linux/Alpha for a while now and slowly working on
> a problem I have with binary data files. I *think* I've figured it out
> and have a kludge but I'd like to know if someone has come up with a
> better explanation and/or solution.
        [...]
>      I've written a small C utility that reads a data file and word-swaps
> the count, and optionally byte-swaps the data. I'd be happy to make it
> available if it would help anyone else.
>      Please let me know if this is a previously solved problem, if I've
> managed to re-invent the wheel, whatever...

The Digital/Compaq Fortran compiler (are you talking about Fortran 
unformatted files, aren't you..?) has a switch to read/write 
big endian files rather than little endian.  It works very well
when exchanging files with AIX, HP-UX, Irix and Solaris.

I suppose that you can enable the same switch on a file basis by
putting some parameter in OPEN , and therefore writing a conversion
program should be trivial under Tru64 Unix.
I am not sure that a Compaq Fortran unformatted file is entirely
compatible with a g77 unformatted file; but I would guess it is.

furio ercolessi


  reply	other threads:[~1999-11-23 18:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-23  2:06 binary data files David Covey
1999-11-23 18:46 ` furio ercolessi [this message]
1999-11-23 21:25 ` Greg Johnson
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