Sujet : Re: EXECUTE implementation in native-code systems
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forthDate : 17. Mar 2025, 10:34:19
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <88dd79f886cd3b889c04f6fabb835587ce0cf724@i2pn2.org>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
On 17/03/2025 5:12 pm, Anton Ertl wrote:
dxf <dxforth@gmail.com> writes:
Would you agree 'nest-sys' are peculiar to colon definitions. That
EXECUTE is a different class of function. It's not doing a 'call'
as such and not leaving anything on the 'return stack'?
That's certainly the case for threaded-code implementations.
For native-code implementations the implementation of EXECUTE is
usually an indirect call; sometimes an indirect tail-call, i.e. a
jump.
...
Yes. Also for optimizing native-code it may be 'xt EXECUTE' itself will
be optimized away. Since the Standard doesn't specify a nest-sys in
relation to EXECUTE we can safely assume there isn't one? If not, when
would it be an issue?