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