News for hackers. Stuff that matters.
Re:Branch Prediction and the Performance of Interpreters – D... by ehaliewicz2 on Monday August 10, 2015 @06:28PM (#10037874)
I think direct threading is usually implemented just by reducing the indirection another level,

e.g.

  goto *lp
rather than

  goto **lp
You could implement an interpreter with generated JMP instructions, which might be called direct-threading, but at least in the forth world, where most jumps are to nested user-defined subroutines, subroutine-threading using JSR instructions is typically used.

There are no comments on this comment yet.