|
|
|
|
|
by evmar
38 days ago
|
|
The translator I made is only hobbyist quality, but I just have a big table that says “if you indirect jmp to address X then the associated block is at location Y”. This is slower than a direct jmp (which doesn’t use the table) but also indirect jumps were slower in the original program to begin with and typically don’t occur in performance-critical loops. |
|
The main use-case in performance-critical loops is generally something like a core interpreter loop, where you're dispatching on an opcode.