From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,c3fcdc66ac0caf8c X-Google-Attributes: gid1164f8,public From: lionel@quark.zko.dec.com (Steve Lionel) Subject: Re: unformatted file conversion Date: 1996/04/04 Message-ID: <4k0v38$bm9@zk2nws.zko.dec.com>#1/1 X-Deja-AN: 145848948 distribution: world sender: lionel@quark.enet.dec.com (Steve Lionel) references: <1996Apr2.151749.4173@cronkite.res.utc.com> organization: Digital Equipment Corporation, Nashua NH reply-to: lionel@quark.zko.dec.com (Steve Lionel) newsgroups: comp.sys.dec 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/