Sujet : Re: Avoid treating the stack as an array [Re: "Back & Forth" is back!]
De : minforth (at) *nospam* gmx.net (minforth)
Groupes : comp.lang.forthDate : 12. Sep 2024, 10:08:20
Autres entêtes
Organisation : novaBBS
Message-ID : <6f20e14815243aea4e91b9cf0fb2488d@www.novabbs.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Rocksolid Light
On Thu, 12 Sep 2024 8:21:43 +0000, dxf wrote:
If a cost, it's one the programmer can keep to minimum. With locals
there's
an upfront cost that can't be avoided. Using registers is appealing
until
one realizes a call to an external function necessitates placing it back
on
the stack. Costs multiply in the face of many small functions.
This is history (or your archaic compiler). Modern compilers try to pass
most parameters through registers.
https://langdev.stackexchange.com/questions/2584/are-modern-compilers-passing-parameters-in-registers-instead-of-on-the-stack