Sujet : Re: The joy of FORTRAN-like languages
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : alt.folklore.computers comp.os.linux.miscDate : 30. Sep 2024, 06:53:09
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vddec5$24fps$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Pan/0.160 (Toresk; )
On Mon, 30 Sep 2024 05:46:39 GMT, 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.
Where would all this save area go?