Deutsch English Français Italiano |
<vde4sj$268qv$25@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: The Natural Philosopher <tnp@invalid.invalid> Newsgroups: alt.folklore.computers,comp.os.linux.misc Subject: Re: The joy of FORTRAN-like languages Date: Mon, 30 Sep 2024 13:17:23 +0100 Organization: A little, after lunch Lines: 29 Message-ID: <vde4sj$268qv$25@dont-email.me> References: <pan$96411$d204da43$cc34bb91$1fe98651@linux.rocks> <vd8o1s$178gk$5@dont-email.me> <llr46dFmeudU2@mid.individual.net> <vd9r10$1d6gq$4@dont-email.me> <vd9rub$18mq$2@gal.iecc.com> <vd9see$1d6gq$5@dont-email.me> <AF4KO.179529$1m96.177503@fx15.iad> <vdantp$1knbl$1@dont-email.me> <3XqKO.347651$WOde.64018@fx09.iad> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 30 Sep 2024 14:17:24 +0200 (CEST) Injection-Info: dont-email.me; posting-host="2efc34bfa98cee095ea5c8bf6ba9396f"; logging-data="2302815"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hfAyFsgo5O0ArYi0+RnEPmwmk+nMzkXs=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:o0m2CsoIU/ZcWVPp3QBmaZ8J9vI= In-Reply-To: <3XqKO.347651$WOde.64018@fx09.iad> Content-Language: en-GB Bytes: 2427 On 30/09/2024 06:46, Charlie Gibbs wrote: > On 2024-09-29, Lawrence D'Oliveiro <ldo@nz.invalid> wrote: > >> On Sun, 29 Sep 2024 04:26:08 GMT, Charlie Gibbs wrote: >> >>> That's assuming your machine has a stack, which the IBM 360 didn't. >> >> Presumably there was a software-defined stack in the ABI. Otherwise how >> would a language like PL/I handle recursion? > > The subroutine calling convention required the calling program > to pass a pointer to a register save area. A recursive routine > would have to allocate a save area in each instance (and, of > course, free it before exiting). If they wanted local variables, > they'd have to allocate and free them as well. > Exactly . At the end of the day., someone looked at how code was developing and said 'y'know, all this would be a piece of piss if we invented a STACK' No need to explicitly allocate and free memory. I think it was ALGOL that first used a stack for all that - not sure. -- "Fanaticism consists in redoubling your effort when you have forgotten your aim." George Santayana