From: nmm1@cus.cam.ac.uk (Nick Maclaren)
Subject: Re: fortran error?
Date: 1998/03/24 [thread overview]
Message-ID: <6f90lh$6r5$1@lyra.csx.cam.ac.uk> (raw)
In-Reply-To: y63eg8xcu4.fsf@tweedledumb.cygnus.com
In article <y63eg8xcu4.fsf@tweedledumb.cygnus.com>, Craig Burley <burley@tweedledumb.cygnus.com> writes:
|>
|> I'm not sure I'm aware of any system that mandates that calling a
|> procedure requires using a stack. Calling pre-compiled *library*
|> procedures might, of course, but that is subsumed by my "calling
|> the OS, etc." comment.
The VAX and quite a few other systems required the language to
maintain the stack pointer, ready for an interrupt. CLU didn't
do this, and failed horribly on the MicroVAX .... Some others
required the use of the (standard) stack if the system exception
handling was to work properly. But all of this was way outside the
language specification.
|> That is, I'm pretty sure that most systems, perhaps all popular
|> ones during the F77 "era", offered "short call" instructions that
|> didn't use the stack. ...
No, during the main part of that era, almost all used static
allocation. Both stack-based and static compilers often had a "fast
call" that evaded the standard conventions, and caused a greater or
lesser amount of chaos if failure occurred in the called routine, so
I am not really disagreeing with you on fundamentals.
|> Regardless, in the F77 days, if you wanted to be absolutely sure
|> a running Fortran program never ran out of memory (once started
|> up by the OS), it was quite easy to do so on almost every system
|> out there, certainly every system I've used, modulo obscure
|> behaviors in the run-time library I didn't know about (and which
|> have basically nothing to do with Fortran).
Um. Provided that you regard opening files as being in the last
category, yes. But OPEN often caused memory exhaustion, and READ
and WRITE sometimes did - e.g. unlike concatenation under MVS :-)
Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QG, England.
Email: nmm1@cam.ac.uk
Tel.: +44 1223 334761 Fax: +44 1223 334679
next prev parent reply other threads:[~1998-03-24 5:00 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-03-12 5:00 fortran error? Armin Leuprecht
1998-03-12 5:00 ` robin
1998-03-16 5:00 ` Steve Lionel
1998-03-17 5:00 ` Peter Shenkin
1998-03-17 5:00 ` Craig Burley
1998-03-17 5:00 ` Peter Shenkin
1998-03-18 5:00 ` Toon Moene
1998-03-18 5:00 ` Jeff Drummond
1998-03-19 5:00 ` Peter Shenkin
1998-03-18 5:00 ` Craig Burley
1998-03-19 5:00 ` Peter Shenkin
1998-03-19 5:00 ` Craig Burley
1998-03-20 5:00 ` Nick Maclaren
1998-03-20 5:00 ` Peter Shenkin
1998-03-20 5:00 ` Craig Burley
1998-03-20 5:00 ` Peter Shenkin
1998-03-23 5:00 ` Craig Burley
1998-03-23 5:00 ` Summary (I hope) failure of automatic allocation; was, " Peter Shenkin
1998-03-24 5:00 ` Craig Burley
1998-03-23 5:00 ` Craig Burley
1998-03-23 5:00 ` Peter Shenkin
1998-03-24 5:00 ` Craig Burley
1998-03-24 5:00 ` Nick Maclaren [this message]
1998-03-20 5:00 ` Nick Maclaren
1998-03-20 5:00 ` Richard Maine
1998-03-20 5:00 ` Richard Maine
1998-03-20 5:00 ` Dick Hendrickson
1998-03-20 5:00 ` Craig Burley
1998-03-20 5:00 ` Peter Shenkin
1998-03-23 5:00 ` Craig Burley
1998-03-20 5:00 ` Peter Shenkin
1998-03-18 5:00 ` Steve Lionel
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox