public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: OPEN statement assumption
@ 2005-01-28 12:31 Bud Davis
  0 siblings, 0 replies; 2+ messages in thread
From: Bud Davis @ 2005-01-28 12:31 UTC (permalink / raw)
  To: gcc-help; +Cc: dfeller


> what units are assumed for variable NREC? Some Fortrans assume bytes,
> some
> assume 4-byte words, etc.
> 
> 

bytes.


> I'm a new user of the g77 compiler and I came across the following
> question in porting a legacy code.
> 

g77 is very, very good at running legacy code....but this comes at the
price of having dozens of compile time options.  do yourself a favor and
read the "collected wisdom" part of the g77 info page. most of the problems
encountered are solved in that section. 


regards,
bud davis

^ permalink raw reply	[flat|nested] 2+ messages in thread

* OPEN statement assumption
@ 2005-01-26 23:55 David Feller
  0 siblings, 0 replies; 2+ messages in thread
From: David Feller @ 2005-01-26 23:55 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-28 12:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-28 12:31 OPEN statement assumption Bud Davis
  -- strict thread matches above, loose matches on Subject: below --
2005-01-26 23:55 David Feller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).