| Deutsch English Français Italiano |
|
<31411d642d8bfec0ac894889780f2e6fe679ee9a@i2pn2.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: dxf <dxforth@gmail.com> Newsgroups: comp.lang.forth Subject: Re: Stack vs stackless operation Date: Wed, 26 Feb 2025 11:35:50 +1100 Organization: i2pn2 (i2pn.org) Message-ID: <31411d642d8bfec0ac894889780f2e6fe679ee9a@i2pn2.org> References: <591e7bf58ebb1f90bd34fba20c730b83@www.novabbs.com> <ed682d52512c43c6697c16dede02ebfad9a74ad8@i2pn2.org> <0549fc7874a0e47c7da5715b99b89b1c@www.novabbs.com> <39a0c814f009109f8dd77f80ed368963b0940ea2@i2pn2.org> <a81ac9ee2ed92686e940a55bed9d4dfb@www.novabbs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 26 Feb 2025 00:35:50 -0000 (UTC) Injection-Info: i2pn2.org; logging-data="1791781"; mail-complaints-to="usenet@i2pn2.org"; posting-account="XPw7UV90Iy7EOhY4YuUXhpdoEf5Vz7K+BsxA/Cx8bVc"; User-Agent: Mozilla Thunderbird X-Spam-Checker-Version: SpamAssassin 4.0.0 In-Reply-To: <a81ac9ee2ed92686e940a55bed9d4dfb@www.novabbs.com> Content-Language: en-GB Bytes: 1897 Lines: 23 On 25/02/2025 11:10 pm, LIT wrote: >>> In case of slower ITC non-optimizing Forths - like >>> fig-Forth, as the most obvious example - the "boost" >>> may be noticeable. >>> I'll check that. >> >> code +> ( x y z -- ) >> dx pop cx pop bx pop 0 [bx] ax mov cx bx xchg >> 0 [bx] ax add dx bx xchg ax 0 [bx] mov next >> end-code >> >> Timing (adjusted for loop time): >> >> var1 @ var2 @ + var3 ! 8019 mS >> var1 var2 var3 +> 5657 mS > > So even in case of fast DTC Forth, like DX Forth, > it's already something worth of closer attention, > I believe. > ... I remain skeptical of such optimizations. Not even twice the performance and the hope it represents a bottle-neck in order to realize that gain.