On Wed, Mar 27, 2002 at 02:55:59AM -0500, Michel J Lambert wrote: > Attached is a patch to implement computed-goto on gcc, taken from the > original post by Daniel Grunblatt: > http:[EMAIL PROTECTED]/msg06255.html
The patch is slightly broken, core_cg_ops.h in interpreter.c versus core_ops_cg.h everywhere else. It does take a while to build the computed goto ops file. I still have to test it myself. I can't tell what has actually been changed in pbc2c.pl, due to the large amount of indentation fixup included in the patch. Can you say what you changed there ? The existing pbc2c implementation worked without computed goto is this still the case ? The CGoto.pm OpTrans is currently being used by the bytecode to C compiler. The existing CGoto.pm should be cloned with a more appropriate name before it gets patched to work with a computed goto core. -- Jason