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

Segher Boessenkool segher at kernel.crashing.org
Sun Feb 25 22:08:22 AEDT 2024


On Thu, Feb 01, 2024 at 11:02:29AM +0530, Kautuk Consul wrote:
> 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.

Of course it does use the return stack.  Every colon definition does.

Things like this (manual inlining) are counterproductive, and thus  only
wanted for cases that really matter a lot.  Like making the engine 3x
faster on average.  Not 0.0003% faster.

There always is a tiny loss from abstraction.  The compiler can try to
reduce that.  But the programmer should not!  Clear, readable, idiomatic
code is much more important than machine cycles.  Optimise for the human
first, not the machine.


Segher


More information about the SLOF mailing list