the C switch

Doug Gwyn <gwyn> gwyn at brl-tgr.ARPA
Sun Mar 3 13:11:38 AEST 1985


> Do any C compilers perform switch optimization? I.e. tradeoff cascaded if
> for table lookup.

All the C compilers I am familiar with have about three different ways
of generating code for a switch statement, in an attempt to optimize
the size of the code vs. its speed.



More information about the Comp.lang.c mailing list