home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!nntpd2.cxo.dec.com!nntpd.lkg.dec.com!engage.pko.dec.com!e2big.mko.dec.com!impec.zko.dec.com!cowan
- From: cowan@impec.zko.dec.com (Ken Cowan)
- Subject: Re: Portability of DIRECT UNFORMATTED data files?
- Message-ID: <1992Jul29.143659.29110@e2big.mko.dec.com>
- Sender: usenet@e2big.mko.dec.com (Mr. USENET)
- Reply-To: cowan@impec.zko.dec.com (Ken Cowan)
- Organization: Digital Equipment Corporation
- References: <1992Jul29.111524.1@lure.latrobe.edu.au> <Bs5F3H.AB0@news.udel.edu>
- Date: Wed, 29 Jul 92 14:36:59 GMT
- Lines: 41
-
- 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:
- |>>What does the standard say about the internal format of DIRECT UNFORMATTED
- |>>data files?
- |>
- |>I have not looked, but I suspect that the standard says nothing useful
- |>for portability here.
- |>
- |>>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.
- |>
- |>Many other machines are definitely *not* the same format, such as the
- |>DECstations, which have their bytes swapped. I think that Stardent
- |>does some funny swapping as well - perhaps on half-words?
- |>
- |>I am told that there exist options in Cray Fortran to output IEEE binary
- |>files. I do not know if they implement exact compatibility with the
- |>Sun/SGI/IBM machines for DA files or for sequential unformatted files.
- |>--
- |>--
- |>John D. McCalpin mccalpin@perelandra.cms.udel.edu
- |>Assistant Professor mccalpin@brahms.udel.edu
- |>College of Marine Studies, U. Del. John.McCalpin@mvs.udel.edu
- |>
-
- 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.
-
- KC
-