Sujet : Re: Avoid treating the stack as an array [Re: "Back & Forth" is back!]
De : mhx (at) *nospam* iae.nl (mhx)
Groupes : comp.lang.forthDate : 12. Sep 2024, 11:11:36
Autres entêtes
Organisation : novaBBS
Message-ID : <16f28f2970c4c2eedffac0809116bcfa@www.novabbs.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : Rocksolid Light
On Thu, 12 Sep 2024 9:08:20 +0000, minforth wrote:
This is history (or your archaic compiler). Modern compilers try to pass
most parameters through registers.
The rules are very complicated, though. One has to account for there
being
too many parameters, for different architectures with different register
assignments, for integer and floating-point type parameters, and under
some
circumstances both the registers *and* the stack must be used, where
some
extra 'working space' may, or may not, be needed.
I was very happy when it finally worked on all of our target OSes.
-marcel