| Deutsch English Français Italiano |
|
<vbkdu0$1v8lq$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Stephen Pelc <stephen@vfxforth.com> Newsgroups: comp.lang.forth Subject: Re: Avoid treating the stack as an array [Re: "Back & Forth" is back!] Date: Sun, 8 Sep 2024 14:56:01 -0000 (UTC) Organization: A noiseless patient Spider Lines: 28 Message-ID: <vbkdu0$1v8lq$1@dont-email.me> References: <nnd$61e0ad9a$48ed61c2@b4d945e456041481> <vaubf7$tbke$1@dont-email.me> <nnd$04cff141$0193ba04@301336b8dd8ed69a> <vbfqnd$v4c4$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=fixed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 08 Sep 2024 16:56:01 +0200 (CEST) Injection-Info: dont-email.me; posting-host="3ace5bfb33e1d30d4f48929d83c9674b"; logging-data="2073274"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/sdnDGqPF4gkr1k8EhY3yr" User-Agent: Usenapp for MacOS Cancel-Lock: sha1:m8dS9tA2agTB7fpg9gXo8zNxB2I= X-Usenapp: v1.27.4/l - Full License Bytes: 2247 On 6 Sep 2024 at 23:03:38 CEST, "Buzz McCool" <buzz_mccool@yahoo.com> wrote: > Would you have any videos talking about Forth locals? You and dxf are > far more adept at stack manipulations than I. I'm thinking I can get a > word up and working with locals and then convert to manual stack > manipulations afterwards if necessary. Don't. You will only become dependent on locals. Use of locals should be a considered decision. > > When is it necessary? dxf showed a word w/o locals to have ~%30 fewer > instructions than a word with locals. Is that a common occurrence? We (MPE) converted much of our TCP/IP stack not to use locals. This was mostly on ARM7 devices, but the figures for other 32 bit CPUs of the period (say 15 years ago) were similar. Code density improved by about 25% and performance by about 50%. Stephen -- Stephen Pelc, stephen@vfxforth.com MicroProcessor Engineering, Ltd. - More Real, Less Time 133 Hill Lane, Southampton SO15 5AF, England tel: +44 (0)78 0390 3612, +34 649 662 974 http://www.mpeforth.com MPE website http://www.vfxforth.com/downloads/VfxCommunity/ downloads