News for hackers. Stuff that matters.
Re:Branch Prediction and the Performance of Interpreters – D... by caf on Monday August 10, 2015 @08:19PM (#10038372)
Is it really true that "Jump threading, though, can- not be implemented in standard C."? Surely, each computed goto:

  goto *labels[*vpc++];
can be replaced with a full copy of the switch:

  switch (*vpc++) { case OP_ADD: goto ADD; case OP_SUB: goto SUB; }
..and hopefully the compiler will replace the entries for the cases in the switch's jump table with the goto targets.

There are no comments on this comment yet.