home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / fortran / 2864 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  2.0 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!news.udel.edu!perelandra.cms.udel.edu!mccalpin
  2. From: mccalpin@perelandra.cms.udel.edu (John D. McCalpin)
  3. Newsgroups: comp.lang.fortran
  4. Subject: Re: Portability of DIRECT UNFORMATTED data files?
  5. Message-ID: <Bs5F3H.AB0@news.udel.edu>
  6. Date: 29 Jul 92 11:40:28 GMT
  7. References: <1992Jul29.111524.1@lure.latrobe.edu.au>
  8. Sender: usenet@news.udel.edu
  9. Organization: College of Marine Studies, U. Del.
  10. Lines: 32
  11. Nntp-Posting-Host: perelandra.cms.udel.edu
  12.  
  13. In article <1992Jul29.111524.1@lure.latrobe.edu.au> matap@lure.latrobe.edu.au (Andrej Panjkov, La Trobe Maths) writes:
  14. >What does the standard say about the internal format of DIRECT UNFORMATTED
  15. >data files? 
  16.  
  17. I have not looked, but I suspect that the standard says nothing useful
  18. for portability here.
  19.  
  20. >Will these be portable between systems?  (ie is a D/U file written by
  21. >a Fortran program on one system readable by a Fortran program on another?)
  22.  
  23. There is a growing range of machines for which Fortran direct access files
  24. use the same internal format.  Right now I share Fortran DA files between
  25. Sun, Silicon Graphics, and IBM RS/6000 machines completely transparently.
  26.  
  27. (Note: the OPEN statement on the SGI may differ, since the RECL= parameter
  28. is in 32-bit words, while Sun & IBM use a RECL of bytes.)
  29.  
  30. These machines also use identical formats for Fortran sequential unformatted
  31. files.
  32.  
  33. Many other machines are definitely *not* the same format, such as the
  34. DECstations, which have their bytes swapped.  I think that Stardent
  35. does some funny swapping as well - perhaps on half-words?
  36.  
  37. I am told that there exist options in Cray Fortran to output IEEE binary
  38. files.  I do not know if they implement exact compatibility with the 
  39. Sun/SGI/IBM machines for DA files or for sequential unformatted files.
  40. -- 
  41. --
  42. John D. McCalpin                        mccalpin@perelandra.cms.udel.edu
  43. Assistant Professor                     mccalpin@brahms.udel.edu
  44. College of Marine Studies, U. Del.      John.McCalpin@mvs.udel.edu
  45.