Re: stacks are not hard, The joy of FORTRAN-like languages

Liste des GroupesRevenir à ol misc 
Sujet : Re: stacks are not hard, The joy of FORTRAN-like languages
De : johnl (at) *nospam* taugh.com (John Levine)
Groupes : alt.folklore.computers comp.os.linux.misc
Date : 04. Oct 2024, 05:49:53
Autres entêtes
Organisation : Taughannock Networks
Message-ID : <vdnol1$255q$1@gal.iecc.com>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
According to Peter Flass  <peter_flass@yahoo.com>:
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.

That's essentially what PL/I did.  The save areas and local variables were
allocated from a big chunk of memory, and when it ran out, the subroutine
prolog called an internal PL/I routine to get a new chunk and chain them
together.  Read all about it here starting on page 158:

https://bitsavers.org/pdf/ibm/360/pli/C28-6594-4_PL1_F_Programmers_Guide_Nov68.pdf

And for the PL/I subset on the tiny 360/20, it starts on page 200:

https://bitsavers.org/pdf/ibm/360/model20/C33-6007-1_360-20_PLI_Dec68.pdf

I hear that Algol F did GETMAIN/FREEMAIN at every block or procedure
entry and exit.  Someone at Princeton hacked it to suballocate from
larger chunks and vastly improved runtime performance.
--
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly

Date Sujet#  Auteur
21 Sep 24 * Can't Avoid That Shit Rust - Even On Gentoo567Farley Flud
21 Sep 24 +- Re: Can't Avoid That Shit Rust - Even On Gentoo1Farley Flud
24 Sep 24 `* Re: Can't Avoid That Shit Rust - Even On Gentoo565186282@ud0s4.net
24 Sep 24  +* Re: Can't Avoid That Shit Rust - Even On Gentoo6Lawrence D'Oliveiro
24 Sep 24  i+* Re: Can't Avoid That Shit Rust - Even On Gentoo2Pancho
25 Sep 24  ii`- Re: Can't Avoid That Shit Rust - Even On Gentoo1186282@ud0s4.net
25 Sep 24  i`* Re: Can't Avoid That Shit Rust - Even On Gentoo3186282@ud0s4.net
25 Sep 24  i +- Re: Can't Avoid That Shit Rust - Even On Gentoo1Lawrence D'Oliveiro
25 Sep 24  i `- Re: Can't Avoid That Shit Rust - Even On Gentoo1rbowman
24 Sep 24  +* Re: Can't Avoid That Shit Rust - Even On Gentoo4D
25 Sep 24  i`* Re: Can't Avoid That Shit Rust - Even On Gentoo3186282@ud0s4.net
25 Sep 24  i `* Re: Can't Avoid That Shit Rust - Even On Gentoo2Lawrence D'Oliveiro
28 Sep 24  i  `- Re: Can't Avoid That Shit Rust - Even On Gentoo1186282@ud0s4.net
24 Sep 24  +* The joy of FORTRAN508Lars Poulsen
24 Sep 24  i+* Re: The joy of FORTRAN256Sn!pe
24 Sep 24  ii+* Re: The joy of FORTRAN160The Natural Philosopher
24 Sep 24  iii+* Re: The joy of FORTRAN34Lawrence D'Oliveiro
25 Sep 24  iiii+* Re: The joy of FORTRAN22rbowman
25 Sep 24  iiiii+* Re: The joy of FORTRAN19Bob Eager
25 Sep 24  iiiiii+* Re: The joy of FORTRAN16rbowman
25 Sep 24  iiiiiii+* Re: The joy of FORTRAN13Bob Eager
27 Sep 24  iiiiiiii`* Re: The joy of FORTRAN12Peter Flass
27 Sep 24  iiiiiiii +- Re: The joy of FORTRAN1Niklas Karlsson
27 Sep 24  iiiiiiii +* Re: The joy of FORTRAN6R Daneel Olivaw
28 Sep 24  iiiiiiii i+* Re: The joy of FORTRAN3Gordon Henderson
28 Sep 24  iiiiiiii ii+- Re: The joy of FORTRAN1Peter Flass
28 Sep 24  iiiiiiii ii`- Re: The joy of FORTRAN1Bob Eager
28 Sep 24  iiiiiiii i+- Re: The joy of FORTRAN1Peter Flass
28 Sep 24  iiiiiiii i`- Re: The joy of FORTRAN1Lars Poulsen
27 Sep 24  iiiiiiii +- Re: The joy of FORTRAN1Bob Eager
28 Sep 24  iiiiiiii `* Re: The joy of FORTRAN3Lawrence D'Oliveiro
28 Sep 24  iiiiiiii  +- Re: The joy of FORTRAN1Peter Flass
30 Sep22:26  iiiiiiii  `- Re: The joy of FORTRAN1Rich Alderson
25 Sep 24  iiiiiii`* Re: The joy of FORTRAN2Lynn Wheeler
25 Sep 24  iiiiiii `- Re: The joy of FORTRAN1Kerr-Mudd, John
25 Sep 24  iiiiii`* Re: The joy of FORTRAN2Chris Ahlstrom
25 Sep 24  iiiiii `- Re: The joy of FORTRAN1Bob Eager
27 Sep 24  iiiii`* Re: The joy of FORTRAN2Peter Flass
27 Sep 24  iiiii `- Re: The joy of FORTRAN1moi
25 Sep 24  iiii+* Re: The joy of FORTRAN2Lynn Wheeler
25 Sep 24  iiiii`- Re: The joy of FORTRAN1Lawrence D'Oliveiro
25 Sep 24  iiii+* Re: The joy of FORTRAN2Chris Ahlstrom
27 Sep 24  iiiii`- Re: The joy of FORTRAN1Peter Flass
25 Sep 24  iiii+- Re: The joy of FORTRAN1Chris Ahlstrom
25 Sep 24  iiii+- Re: The joy of FORTRAN1Kerr-Mudd, John
27 Sep 24  iiii+* Re: The joy of FORTRAN2Peter Flass
27 Sep 24  iiiii`- Re: The joy of FORTRAN1Dennis Boone
27 Sep 24  iiii`* Re: The joy of FORTRAN3Andy Walker
28 Sep 24  iiii +- Re: The joy of FORTRAN1Lawrence D'Oliveiro
28 Sep 24  iiii `- Re: The joy of FORTRAN1Peter Flass
25 Sep 24  iii+* Re: The joy of FORTRAN2Peter Flass
25 Sep 24  iiii`- Re: The joy of FORTRAN1Lawrence D'Oliveiro
25 Sep 24  iii+- Re: The joy of FORTRAN1Peter Flass
25 Sep 24  iii+- Re: The joy of FORTRAN1Peter Flass
25 Sep 24  iii+- Re: The joy of FORTRAN1rbowman
25 Sep 24  iii+* Re: The joy of FORTRAN116Woozy Song
25 Sep 24  iiii`* Re: The joy of FORTRAN115rbowman
25 Sep 24  iiii +* Re: The joy of FORTRAN3Lawrence D'Oliveiro
27 Sep 24  iiii i`* Re: The joy of FORTRAN2Peter Flass
30 Sep12:58  iiii i `- Re: The joy of FORTRAN1Waldek Hebisch
25 Sep 24  iiii +* Re: The joy of FORTRAN37Chris Ahlstrom
25 Sep 24  iiii i+* Re: The joy of FORTRAN3R Daneel Olivaw
25 Sep 24  iiii ii`* Re: The joy of FORTRAN2Kerr-Mudd, John
25 Sep 24  iiii ii `- Re: The joy of FORTRAN1R Daneel Olivaw
25 Sep 24  iiii i+* Re: The joy of FORTRAN6Lynn Wheeler
26 Sep 24  iiii ii+- Re: The joy of FORTRAN1Pancho
26 Sep 24  iiii ii`* Re: The joy of FORTRAN4Lynn Wheeler
26 Sep 24  iiii ii `* Re: The joy of FORTRAN3Lawrence D'Oliveiro
27 Sep 24  iiii ii  `* Re: The joy of FORTRAN2rbowman
27 Sep 24  iiii ii   `- Re: The joy of FORTRAN1Lawrence D'Oliveiro
26 Sep 24  iiii i+* Re: The joy of FORTRAN3rbowman
26 Sep 24  iiii ii+- Re: The joy of FORTRAN1John Ames
26 Sep 24  iiii ii`- Re: The joy of FORTRAN1Lawrence D'Oliveiro
26 Sep 24  iiii i+* Re: The joy of FORTRAN19Pancho
26 Sep 24  iiii ii+* Re: The joy of FORTRAN16Lawrence D'Oliveiro
26 Sep 24  iiii iii`* Re: The joy of FORTRAN15Pancho
26 Sep 24  iiii iii `* Re: The joy of FORTRAN14Lawrence D'Oliveiro
27 Sep 24  iiii iii  `* Re: The joy of FORTRAN13Lars Poulsen
27 Sep 24  iiii iii   +* Re: The joy of FORTRAN7Lawrence D'Oliveiro
27 Sep 24  iiii iii   i`* Re: The joy of FORTRAN6Pancho
28 Sep 24  iiii iii   i `* Re: The joy of VAX5Lawrence D'Oliveiro
28 Sep 24  iiii iii   i  `* Re: The joy of VAX4Pancho
29 Sep09:35  iiii iii   i   `* Re: The joy of VAX3Robert Marshall
29 Sep09:56  iiii iii   i    +- Re: The joy of VAX1Bob Eager
29 Sep22:15  iiii iii   i    `- Re: The joy of VAX1Peter Flass
28 Sep 24  iiii iii   `* The joy of VAX C5Lars Poulsen
28 Sep 24  iiii iii    +- Re: The joy of VAX C1The Natural Philosopher
29 Sep 24  iiii iii    +- Re: The joy of VAX C1rbowman
29 Sep22:15  iiii iii    `* Re: The joy of VAX C2Peter Flass
30 Sep01:10  iiii iii     `- Re: The joy of VAX C1Lawrence D'Oliveiro
27 Sep 24  iiii ii`* Re: The joy of FORTRAN2Peter Flass
27 Sep 24  iiii ii `- Re: The joy of FORTRAN1Lawrence D'Oliveiro
27 Sep 24  iiii i`* Re: The joy of FORTRAN5Peter Flass
27 Sep 24  iiii i +* Re: The joy of FORTRAN2Bob Eager
28 Sep 24  iiii i i`- Re: The joy of FORTRAN1Peter Flass
27 Sep 24  iiii i `* Re: The joy of FORTRAN2Lynn Wheeler
27 Sep 24  iiii i  `- Re: The joy of FORTRAN1Lynn Wheeler
25 Sep 24  iiii `* Re: The joy of FORTRAN74John Ames
25 Sep 24  iiii  +* Re: The joy of FORTRAN69Stefan Ram
25 Sep 24  iiii  i+* Re: The joy of FORTRAN2John Ames
25 Sep 24  iiii  ii`- Re: The joy of FORTRAN1Lawrence D'Oliveiro
25 Sep 24  iiii  i+* TeX and Pascal [was Re: The joy of FORTRAN]65Rich Alderson
25 Sep 24  iiii  i`- Re: The joy of FORTRAN1Lawrence D'Oliveiro
25 Sep 24  iiii  `* Re: The joy of FORTRAN4Lawrence D'Oliveiro
25 Sep 24  iii`* Re: The joy of FORTRAN4John Levine
24 Sep 24  ii+* Re: The joy of FORTRAN91rbowman
24 Sep 24  ii+* Re: The joy of FORTRAN2Lawrence D'Oliveiro
25 Sep 24  ii`* Re: The joy of FORTRAN2Bob Eager
24 Sep 24  i+* Re: The joy of FORTRAN5Bob Eager
24 Sep 24  i+- Re: The joy of FORTRAN1R Daneel Olivaw
25 Sep 24  i+- Re: The joy of FORTRAN1Peter Flass
25 Sep 24  i`* Re: The joy of FORTRAN244186282@ud0s4.net
24 Sep 24  +* Re: Can't Avoid That Shit Rust - Even On Gentoo3rek2 hispagatos
24 Sep 24  +* Re: Can't Avoid That Shit Rust - Even On Gentoo2rbowman
24 Sep 24  +- Re: Can't Avoid That Shit Rust - Even On Gentoo1The Natural Philosopher
25 Sep 24  `* Re: Can't Avoid That Shit Rust - Even On Gentoo40rbowman

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal