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

  1. 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
  2. Newsgroups: comp.lang.fortran
  3. Subject: Re: Portability of DIRECT UNFORMATTED data files?
  4. Message-ID: <Bs5wA8.7xp@news.cso.uiuc.edu>
  5. From: ercolessi@uimrl7.mrl.uiuc.edu (furio ercolessi)
  6. Date: Wed, 29 Jul 1992 17:51:42 GMT
  7. Reply-To: ercolessi@uimrl7.mrl.uiuc.edu (furio ercolessi)
  8. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  9. References: <1992Jul29.111524.1@lure.latrobe.edu.au> <Bs5F3H.AB0@news.udel.edu> <1992Jul29.143659.29110@e2big.mko.dec.com>
  10. Organization: MRL - UIUC
  11. Lines: 34
  12.  
  13. In article <1992Jul29.143659.29110@e2big.mko.dec.com>, cowan@impec.zko.dec.com (Ken Cowan) writes:
  14. |>In article <Bs5F3H.AB0@news.udel.edu>, mccalpin@perelandra.cms.udel.edu (John D. McCalpin)
  15. |>writes:
  16. |>|>In article <1992Jul29.111524.1@lure.latrobe.edu.au> matap@lure.latrobe.edu.au (Andrej Panjkov,
  17. |>La Trobe Maths) writes:
  18. |>|>>Will these be portable between systems?  (ie is a D/U file written by
  19. |>|>>a Fortran program on one system readable by a Fortran program on another?)
  20. |>|>
  21. |>|>There is a growing range of machines for which Fortran direct access files
  22. |>|>use the same internal format.  Right now I share Fortran DA files between
  23. |>|>Sun, Silicon Graphics, and IBM RS/6000 machines completely transparently.
  24. |>|>
  25. |>|>(Note: the OPEN statement on the SGI may differ, since the RECL= parameter
  26. |>|>is in 32-bit words, while Sun & IBM use a RECL of bytes.)
  27. |>|>
  28. |>|>These machines also use identical formats for Fortran sequential unformatted
  29. |>|>files.
  30.  
  31. One may add Hewlett-Packard (700 series) to the list, at least for sequential
  32. unformatted, and Convexes in IEEE mode, as emerged from a discussion
  33. in this newsgroup some time ago.
  34.  
  35. |>|>Many other machines are definitely *not* the same format, such as the
  36. |>|>DECstations, which have their bytes swapped. 
  37. |>   DEC Fortran V3 on the DECstation has an option that lets you read RS/6000
  38. |>direct access unformatted files.  Try "CONVERT=BIG_ENDIAN" as an open statement
  39. |>option.  This is documented in the release notes for V3.1.
  40.  
  41. Or use option '-assume big_endian' in the f77 command line.
  42. --
  43. Furio Ercolessi
  44. Materials Research Laboratory           |   Intl School for Advanced Studies
  45. Univ. of Illinois at Urbana-Champaign   |   Trieste, Italy
  46. furio@uiuc.edu                          |   furio@sissa.it
  47.