| Deutsch English Français Italiano |
|
<05fd5a0056972ac60f43598f23a170ad@www.novabbs.com> 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: minforth@gmx.net (minforth) Newsgroups: comp.lang.forth Subject: Re: Avoid treating the stack as an array [Re: "Back & Forth" is back!] Date: Fri, 13 Sep 2024 07:56:37 +0000 Organization: novaBBS Message-ID: <05fd5a0056972ac60f43598f23a170ad@www.novabbs.com> References: <nnd$61e0ad9a$48ed61c2@b4d945e456041481> <vasqjd$icjm$1@dont-email.me> <66d26c4b$1@news.ausics.net> <vaubf7$tbke$1@dont-email.me> <nnd$04cff141$0193ba04@301336b8dd8ed69a> <vbfqnd$v4c4$1@dont-email.me> <nnd$26b4d59b$27bdb181@ce638e508b04426e> <87bk0vbvgk.fsf@nightsong.com> <66e0fa58$1@news.ausics.net> <66e11d64$1@news.ausics.net> <877cbh4b6z.fsf@nightsong.com> <66e2a497$1@news.ausics.net> <2024Sep12.121903@mips.complang.tuwien.ac.at> <66e37b37$1@news.ausics.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: i2pn2.org; logging-data="1878424"; mail-complaints-to="usenet@i2pn2.org"; posting-account="0+ejqm+s29REto3A2x2P4fP+XaUXf51pZgtYBR0nEqI"; User-Agent: Rocksolid Light X-Rslight-Site: $2y$10$VA/EkI1gXIbi5v2XSDImOORAQkSvllOsm1wzhuPMovanJ1vDDj5UC X-Rslight-Posting-User: d2a19558f194e2f1f8393b8d9be9ef51734a4da3 X-Spam-Checker-Version: SpamAssassin 4.0.0 Bytes: 2392 Lines: 27 On Thu, 12 Sep 2024 23:37:29 +0000, dxf wrote: > On 12/09/2024 8:19 pm, Anton Ertl wrote: >> Register allocation is one of the most effective optimizations in >> compilers. That's also true of Forth. >> >>> Costs multiply in the face of many small functions. >> >> Register allocation is also effective for small functions. > > Moore talked about registers. It's worth repeating for those who may be > new > to forth. > > "But such registers raises the question of local variables. There is a > lot of > discussion about local variables. That is another aspect of your > application > where you can save 100% of the code. I remain adamant that local > variables > are not only useless, they are harmful. If you are writing code that > needs > them you are writing, non-optimal code" - Chuck Moore 1999 The only thing that can be deduced from this is that back in 1999 this was Moore's opinion in the specific context of his work. Besides, the world has changed a wee bit since then...