From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,1ef3b84ca62fad7b X-Google-Attributes: gidfee84,public X-Google-Thread: 1094ba,1ef3b84ca62fad7b X-Google-Attributes: gid1094ba,public From: nmm1@cus.cam.ac.uk (Nick Maclaren) Subject: Re: fortran error? Date: 1998/03/24 Message-ID: <6f90lh$6r5$1@lyra.csx.cam.ac.uk>#1/1 X-Deja-AN: 337263555 Sender: nmm1@taurus.cus.cam.ac.uk (Nick Maclaren) References: <3507A4A5.F8A7DDC2@matd.tu-graz.ac.at> <6ejfii$kbd@usenet.pa.dec.com> <350E95A7.41C6@still3.chem.columbia.edu> <350EDA13.2781@still3.chem.columbia.edu> <351181DB.2781@still3.chem.columbia.edu> <351296BC.167E@still3.chem.columbia.edu> <3512FE4B.2781@still3.chem.columbia.edu> <3516CD59.167E@still3.chem.columbia.edu> Organization: University of Cambridge, England Newsgroups: comp.lang.fortran,comp.unix.osf.osf1 In article , Craig Burley 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