home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!news.udel.edu!perelandra.cms.udel.edu!mccalpin
- From: mccalpin@perelandra.cms.udel.edu (John D. McCalpin)
- Newsgroups: comp.lang.fortran
- Subject: Re: Portability of DIRECT UNFORMATTED data files?
- Message-ID: <Bs5F3H.AB0@news.udel.edu>
- Date: 29 Jul 92 11:40:28 GMT
- References: <1992Jul29.111524.1@lure.latrobe.edu.au>
- Sender: usenet@news.udel.edu
- Organization: College of Marine Studies, U. Del.
- Lines: 32
- Nntp-Posting-Host: perelandra.cms.udel.edu
-
- 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
-