3 ms·
No. This is a kind of duff’s device[0] although it is hard to identify. In essence, it’s attempting to manually unroll the loop’s - the while(true) - switch cas
by turndown 3y ago
No. This is a kind of duff’s device[0] although it is hard to identify. In essence, it’s attempting to manually unroll the loop’s - the while(true) - switch cases, so that if you have a PLUS then a DROP right after it can just run linearly(that is, fall through to case DROP), not having to go back to the top of the loop to go back into the switch statement and then check that ip != PLUS to get to case DROP, etc.
0: https://en.wikipedia.org/wiki/Duff%27s_device https://en.wikipedia.org/wiki/Duff%27s_device
- jonsen 3y agoYou are probably over-interpreting this interpreter.