This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Proposed patch for 4 byte unformatted record delimiters


Rob's method is the most standard way of writing unformatted sequential
files. Every compiler I've used for 25 years used this method.

We are talking about Fortran logical records. Using Rob's method you can
write any length logical record you want. The record delimiter, that is
written into the file is  the block length. Which is limited to 31 bits. You
can write longer logical records by adding any number of extension blocks.

This method requires no compiler flags. There is no reason that a 64 bit
compilers files be any different that a 32 bit compiler files.

Most of these compilers would have never even written 31 bit blocks. They
would have written much smaller blocks for performance reasons on the
hardware they were using.


Ron Young



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]