home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!caen!kuhub.cc.ukans.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uimrl7.mrl.uiuc.edu!ercolessi
- Newsgroups: comp.lang.fortran
- Subject: Re: Portability of DIRECT UNFORMATTED data files?
- Message-ID: <Bs5wA8.7xp@news.cso.uiuc.edu>
- From: ercolessi@uimrl7.mrl.uiuc.edu (furio ercolessi)
- Date: Wed, 29 Jul 1992 17:51:42 GMT
- Reply-To: ercolessi@uimrl7.mrl.uiuc.edu (furio ercolessi)
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- References: <1992Jul29.111524.1@lure.latrobe.edu.au> <Bs5F3H.AB0@news.udel.edu> <1992Jul29.143659.29110@e2big.mko.dec.com>
- Organization: MRL - UIUC
- Lines: 34
-
- In article <1992Jul29.143659.29110@e2big.mko.dec.com>, cowan@impec.zko.dec.com (Ken Cowan) writes:
- |>In article <Bs5F3H.AB0@news.udel.edu>, mccalpin@perelandra.cms.udel.edu (John D. McCalpin)
- |>writes:
- |>|>In article <1992Jul29.111524.1@lure.latrobe.edu.au> matap@lure.latrobe.edu.au (Andrej Panjkov,
- |>La Trobe Maths) writes:
- |>|>>Will these be portable between systems? (ie is a D/U file written by
- |>|>>a Fortran program on one system readable by a Fortran program on another?)
- |>|>
- |>|>There is a growing range of machines for which Fortran direct access files
- |>|>use the same internal format. Right now I share Fortran DA files between
- |>|>Sun, Silicon Graphics, and IBM RS/6000 machines completely transparently.
- |>|>
- |>|>(Note: the OPEN statement on the SGI may differ, since the RECL= parameter
- |>|>is in 32-bit words, while Sun & IBM use a RECL of bytes.)
- |>|>
- |>|>These machines also use identical formats for Fortran sequential unformatted
- |>|>files.
-
- One may add Hewlett-Packard (700 series) to the list, at least for sequential
- unformatted, and Convexes in IEEE mode, as emerged from a discussion
- in this newsgroup some time ago.
-
- |>|>Many other machines are definitely *not* the same format, such as the
- |>|>DECstations, which have their bytes swapped.
- |> DEC Fortran V3 on the DECstation has an option that lets you read RS/6000
- |>direct access unformatted files. Try "CONVERT=BIG_ENDIAN" as an open statement
- |>option. This is documented in the release notes for V3.1.
-
- Or use option '-assume big_endian' in the f77 command line.
- --
- Furio Ercolessi
- Materials Research Laboratory | Intl School for Advanced Studies
- Univ. of Illinois at Urbana-Champaign | Trieste, Italy
- furio@uiuc.edu | furio@sissa.it
-