This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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]

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


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