Re:Implementing a Virtual Machine in C
by arcatek on Tuesday June 23, 2015 @10:57AM
(#9765020)
Even without inlining? Since the compiler cannot know what instruction will be called, it cannot inline it in the loop.
[ Parent
| on HN ]
Why do you want any inlining? It's a threaded code. You know an address of each instruction handler, so you can replace an opcode with this address and eliminate a switch and any table lookups altogether.