[virtmach] Switch vs. Jump Tables?

Murray, Peter C Peter.Murray@gs.com
Tue, 14 Nov 2000 14:44:35 +0900

> I would have used a jump table indexed by 
> opcodes pointing to function pointers 
> implementing each one of the instruction. 

I've never look at the ASM code generated by an optimizing compiler for the
switch statement, but I'd assume it would produce some form of efficient
jump table anyway.  And you would't have the overhead of a pointer
indirection and fn call for each virtual instruction.  Has anyone looked
into this in more detail?