On Mon, Nov 8, 2010 at 2:45 AM, Dr. David Kirkby
<david.kir...@onetel.net> wrote:

> I assumed the fact the Sun compiler was compiling this without problems,
> that the code was standard C, but I take your word for the fact the bit of
> code is not. I don't actually know precisely the bit of affected code, so I
> was unaware it was not C.

The technique is simple: store `addresses' of labels in a table, and jump
to the entries as appropriate.  The only snag is that `address of label' is
inexistent in standard C.

For more information about the extension in GCC, see:

http://gcc.gnu.org/onlinedocs/gcc-4.5.1/gcc/Labels-as-Values.html#Labels-as-Values


-- Gaby

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list

Reply via email to