Re: how to use standard fortran on a "binary"input file?
  Home FAQ Contact Sign in
comp.lang.fortran only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: how to use standard fortran on a "binary"input file?         

Group: comp.lang.fortran · Group Profile
Author: Terence
Date: Aug 23, 2008 15:31

Steve Lionel wrote:
> Terence wrote:
>
>> I do wish the standard default for RECL on this mode was still bytes
>> (and not 4-byte words) and not a compiler option. After all the
>> dafault (if not specified) in SEQUENTIAL, is bytes, not 4-byte words -
>> just the opposite!
>
> Since you're using CVF, the default for UNFORMATTED access is 4-byte
> units of RECL=. This has been the mode of DEC compilers for more than
> 30 years and comes from the F77 standard's use of the term "storage
> units" being interpreted as "numerical storage units" - that is, the
> size of an INTEGER or REAL.
>
> In Fortran 2003, the standard still allows this but recommends the use
> of bytes (I forget the exact wording).

Sensible! But the default is the opposite of IBM.s 704/7044 etc and
Microsoft's AT default of one byte counts - which causes puzzlement to
a new non-DEC user of the CVF compiler. IBM MAY have had a different
default for the mainframe in the later /370 days because of disk
drives, but I only used these for the ULA BMD Fortran statistical
packages

And the above words almost duplicate Steve's original help to me with
precisely this problem when I installed and started to use the CVF 6.6
compiler "back when" this came out. A demonstration of why I would
NEVER imply his refusal to help, Richard!.

(You have to set an override switch which is well hidden in Visual
Studio).
no comments
diggit! del.icio.us! reddit!