| Deutsch English Français Italiano |
|
<v9gc9i$1nqu$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Gerry Jackson <do-not-use@swldwa.uk> Newsgroups: comp.lang.forth Subject: Re: Juggling system-compilation items Date: Tue, 13 Aug 2024 20:31:00 +0100 Organization: A noiseless patient Spider Lines: 22 Message-ID: <v9gc9i$1nqu$1@dont-email.me> References: <v957nr$jq4q$2@dont-email.me> <v9bdpm$2sbsi$1@dont-email.me> <nnd$37164d96$3acc3df6@43c3aecde4ca6b05> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 13 Aug 2024 21:30:59 +0200 (CEST) Injection-Info: dont-email.me; posting-host="34f91b65ee2b7388af44d7389fcf9260"; logging-data="57182"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19zmzNSZ/fSss8ZLz1MpJd6yeGBJF1ofaU=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:Io8oSTfoatKjsvfNaD+X96nHSds= Content-Language: en-GB In-Reply-To: <nnd$37164d96$3acc3df6@43c3aecde4ca6b05> Bytes: 2189 On 12/08/2024 10:45, albert@spenarnc.xs4all.nl wrote: > In article<v9bdpm$2sbsi$1@dont-email.me>, > Gerry Jackson<do-not-use@swldwa.uk> wrote: >> ISTM that using the data stack to hold the control stack is an >> anachronism that was used in early Forth systems because of the limited >> amount of memory available. I also think that the system should not get >> in the way of user programs as putting control stack data on the data >> stack certainly does. > It alleviates restriction. Marcel Hendrix hated the restrictions of > R> >R and added the socalled "system stack" S> >S that can be used > over definitions. The disadvantage is of course that there are more > regions of memory that you have to keep track of. > I think that added complexity is a more important consideration as > memory usage. The more stacks you have and the more stack items > you keep in registers, the more difficult e.g. task switching becomes. As use of a control stack is during compilation, speed is not too important so why would register(s) be used for it? -- Gerry