Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <1780944966.749420156.476631.peter_flass-yahoo.com@news.eternal-september.org>
Deutsch   English   Français   Italiano  
<1780944966.749420156.476631.peter_flass-yahoo.com@news.eternal-september.org>

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: Peter Flass <peter_flass@yahoo.com>
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: The joy of FORTRAN-like languages
Date: Mon, 30 Sep 2024 14:19:41 -0700
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <1780944966.749420156.476631.peter_flass-yahoo.com@news.eternal-september.org>
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
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 30 Sep 2024 23:19:41 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3a721c7ebb47ce1144e932a9b0bdb2de";
	logging-data="2520151"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/iJBcpw3EKzz71TUzbR/vV"
User-Agent: NewsTap/5.3.1 (iPad)
Cancel-Lock: sha1:d4EsZsYiDlcxTnsSQwDudSzr+U0=
	sha1:v15ZhdaX3CksIm45Hk3mN63vAHw=
Bytes: 2465

Charlie Gibbs <cgibbs@kltpzyxm.invalid> 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.
> 

Presumably local variables would be allocated together with the save area.
All the assembler code I wrote used GETMAIN/FREEMAIN, then I had a
head-slapping moment a few years ago when someone said “just allocate a big
chunk of memory and allocate save areas from it to eliminate lots of SVCs.”
Of course this only makes sense when your assembler code has lots of
internal calls, not for small stand-alone subroutines.

-- 
Pete