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

Thomas Huth thuth at redhat.com
Tue Jan 23 21:00:31 AEDT 2024


On 23/01/2024 10.48, Kautuk Consul wrote:
> On 2024-01-23 10:43:48, Thomas Huth wrote:
>> On 23/01/2024 10.38, Kautuk Consul wrote:
>>> "COMPILE" isn't being used anywhere in the Forth code as it is
>>> currently only being used for "+COMP" and "-COMP" keywords.
>>> Remove this keyword definition and use the standard "DOTICK <word> COMPILE,"
>>> mechanism as is being used by the rest of the compiler.
>>
>> "compile" is defined by IEEE 1275, so I doubt that we should remove it?
>>
>>   Thomas
> Oh yes it is. So we can keep that keyword for maintaining the standard.
> But can we at least use DOTICK <word> COMPILE, for +COMP and -COMP
> as that seems to be more efficient than utilizing the return stack in
> the "COMPILE" does ?

Sounds like a reasonable optimization to me at a quick glance. But maybe 
Segher could also comment on this, he's more experienced in this SLOF engine 
stuff than anybody else.

  Thomas



More information about the SLOF mailing list