Name: Anonymous 2014-06-15 5:24
How much faster is it compared to stat-of-art implementations?
for (;;) code[PC++]();
pc_changed:
switch (PC) {
case 0: if (code[0].op == C_JMP) { // branch-prediction would optimize that out
PC = code[0].target;
goto pc_changed;
}
handlers[code.op](code+0);
case 1: ...
...
case MAX: ...
}