> >With GCC only, you can get the address of a label like this:
> >static void *array[] = { &&foo, &&bar, &&hack };
> >goto *array[i];
> >foo:
> >bar:
> >hack:
> >
> >Of course, this does exactly the same as a switch.
> >
> Are you sure switch makes the same kind of code as above ? I thougth it
> made a lot of compare/next steps !With any minimally optimizing compiler, yes it does. Martin _______________________________________________ glob2-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/glob2-devel
