From: lionel@quark.zko.dec.com (Steve Lionel)
Subject: Re: unformatted file conversion
Date: 1996/04/04 [thread overview]
Message-ID: <4k0v38$bm9@zk2nws.zko.dec.com> (raw)
In-Reply-To: 1996Apr2.151749.4173@cronkite.res.utc.com
In article <1996Apr2.151749.4173@cronkite.res.utc.com>,
sondak@galileo.res.utc.com (Doug Sondak ) writes:
|>Although I am using an IBM workstation, I work closely with a
|>colleague who has a cluster of DEC Alpha workstations. We
|>generate unformatted files in our fortran code, but we can't
|>share these files due to the different binary formats on the
|>machines. (I routinely transfer files between IBM and SGI
|>workstations, but I assume that the DEC words have the bits
|>swapped compared to these machines.)
I think I responded to Doug's question in another forum/newsgroup - in
brief, the solution is to use -convert big_endian on the Alpha side when
compiling the Fortran code. This will make unformatted files automatically
convert to the IBM-style big-endian byte order. There are "smaller hammers"
available to specify this for individual units - see the DEC Fortran
User Manual for details.
--
Steve Lionel mailto:lionel@quark.zko.dec.com
Fortran Development http://www.digital.com/info/slionel.html
Digital Equipment Corporation http://ourworld.compuserve.com/homepages/
110 Spit Brook Road, ZKO2-3/N30 Steve_Lionel/
Nashua, NH 03062-2698 "Free advice is worth every cent"
For information on Digital Fortran 90, see http://www.digital.com/info/hpc/f90/
next prev parent reply other threads:[~1996-04-04 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-02 5:00 unformatted file conversion Doug Sondak
1996-04-04 5:00 ` Steve Lionel [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-04-05 5:00 Jeffrey S. Pidel
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