This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
OPEN statement assumption
- From: David Feller <dfeller at owt dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 26 Jan 2005 15:53:55 -0800
- Subject: OPEN statement assumption
I'm a new user of the g77 compiler and I came across the following
question in porting a legacy code. What is the assumed units when
specifying the record length in an OPEN statement? For example,
in the following statement:
OPEN(UNIT=40,
* ACCESS='DIRECT',RECL=NREC,STATUS='UNKNOWN',FILE=UNIX40)
what units are assumed for variable NREC? Some Fortrans assume bytes,
some
assume 4-byte words, etc.
I couldn't find this information on-line, but perhaps I wasn't looking
in the
right place.
Thanks.
David Feller