glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] scripting language


From: martin . voelkle
Subject: Re: [glob2-devel] scripting language
Date: Wed, 25 May 2005 18:49:03 +0200
User-agent: Internet Messaging Program (IMP) 3.2.7

> >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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]