[SLOF] [PATCH] slof/engine.in: remove the "COMPILE" keyword

Kautuk Consul kconsul at linux.vnet.ibm.com
Thu Feb 1 16:32:48 AEDT 2024


Hi,

One more think I want to say in the discussion below:

On 2024-02-01 10:42:11, Kautuk Consul wrote:
> Hi,
> 
> One small rectification in my previous email.
> 
> On 2024-02-01 10:40:00, Kautuk Consul wrote:
> > Hi Segher,
> > 
> > On 2024-01-31 10:11:05, Segher Boessenkool wrote:
> > > On Tue, Jan 23, 2024 at 04:11:09PM +0530, Kautuk Consul wrote:
> > > > So, 2 questions for Segher:
> > > > i)	Can we use the standard DOTICK DOCOL COMPILE, and DOTICK SEMICOLON
> > > > COMPILE, method for +COMP and -COMP respectively ? That seems to be more
> > > > efficient as that doesn't use the return stack.
> > > 
> > > No, the standard requires the word COMPILE to exist.  It is a standard
> > > Forth word, historical (it isn't part of ANS Forth).
> > 
> > Yes, I do understand that now.
> > But I am just proposing that we use "DOTICK DOCOL COMPILE," instead of
> > "COMPILE DOCOL" in "+COMP" so that the compiler doesn't have
> > to use the return stack as it is not required in "+COMP". Same thing goes for -COMP.
> > It's a minor performance improvement, but I spotted this while reviewing
> > the code so I decided to send this patch.

Just to clarify (although you already know it): "DOTICK DOCOL COMPILE,"
will work the same as "COMPILE DOCOL", only it will work faster as
the return stack will not be used.


More information about the SLOF mailing list