[Sablevm-user] SableVM question
Brought to you by:
egagnon
From: Marcel A. <ma...@ca...> - 2000-08-28 08:05:26
|
Hello, I've been researching some clean-room JVM implementations (Kaffe, Japhar, SableVM) and have a question regarding the interpreter loop in SableVM. You use the GCC-extended goto mechanism to jump to the instruction implementations while the other two use a switch() statement. I did a very quick benchmark between these two methods and it seems the switch() based approach is much quicker than using goto with a lookup table. My question is: why use goto instead of switch()? Thanks in advance, Marcel Ammerlaan |