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 : 01. Oct 2024, 00:25:02
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vdfc0e$2dsh2$3@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Pan/0.160 (Toresk; )
On Mon, 30 Sep 2024 14:19:41 -0700, Peter Flass wrote:
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.
Or if you have a userland-level API like POSIX, that specifies standard
malloc/free routines.