Deutsch   English   Français   Italiano  
<88dd79f886cd3b889c04f6fabb835587ce0cf724@i2pn2.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: dxf <dxforth@gmail.com>
Newsgroups: comp.lang.forth
Subject: Re: EXECUTE implementation in native-code systems
Date: Mon, 17 Mar 2025 20:34:19 +1100
Organization: i2pn2 (i2pn.org)
Message-ID: <88dd79f886cd3b889c04f6fabb835587ce0cf724@i2pn2.org>
References: <nnd$451a798f$08238180@7ebfa2c34bfc24b8>
 <8d760e814c0d0342eb9beaa0d271a6f1d1271e3a@i2pn2.org>
 <nnd$2d9c6afc$0030a925@cd2cabd68cc02a71>
 <0a267120565f86b1be396616f06ae9c81e5043a6@i2pn2.org>
 <2025Mar17.071238@mips.complang.tuwien.ac.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 17 Mar 2025 09:34:19 -0000 (UTC)
Injection-Info: i2pn2.org;
	logging-data="545560"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="XPw7UV90Iy7EOhY4YuUXhpdoEf5Vz7K+BsxA/Cx8bVc";
User-Agent: Mozilla Thunderbird
In-Reply-To: <2025Mar17.071238@mips.complang.tuwien.ac.at>
X-Spam-Checker-Version: SpamAssassin 4.0.0
Content-Language: en-GB
Bytes: 1876
Lines: 17

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?