Re: End of record marker - 32 vs. 64 bit
- From: nospam@xxxxxxxxxxxxx (Richard Maine)
- Date: Wed, 28 Feb 2007 13:43:32 -0800
Steve Lionel <steve.lionel@xxxxxxxxx> wrote:
I'm not sure why you feel you are locked to g77.
And if you do feel that you are locked into g77, then you are also
locked into this problem. To my knowledge, g77 is no longer under active
maintenance, at least in terms of feature requests, which is what that
would count as.
Let me also note that this is not the only problem you will run into in
terms of binary compatibility of sequential unformatted files. The
standard basically guarantees nothing at all about their portability.
They are guaranteed to work only with the particular compiler that made
them. There was a time when they were quite non-portable for many, many
more reasons than just this. As it happens there has been enough
convergence that you can often get decent portability of them, but they
still are not a good choice for a portable file.
In addition to the 32-bit vs 64-bit record markers, you also have
byte-sex issues as a significant difference in today's systems. That
applies even from one Unix system to another.
I have generally regarded sequential unformatted files as a handy and
efficient convenience for files not intended to be portable. For
example, they are fine for temporary files. I used to use formatted
sequential files for portability; they still remain by far the most
portable form. But at times, the penalties for formatted files are
unreasonably high. It does take a bit of work to do a good job of a
portable binary format. F2003 stream I/O helps a lot.
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.
- References:
- End of record marker - 32 vs. 64 bit
- From: Chris Theis
- Re: End of record marker - 32 vs. 64 bit
- From: Steve Lionel
- End of record marker - 32 vs. 64 bit
- Prev by Date: IBM XL Fortran
- Next by Date: Re: IBM XL Fortran
- Previous by thread: Re: End of record marker - 32 vs. 64 bit
- Next by thread: IBM XL Fortran
- Index(es):
Relevant Pages
|