Do any C compilers perform switch optimization? I.e. tradeoff cascaded if for table lookup. Clearly this is an optimization since a table would be very wasteful for: switch(x){ case 0: a();break; case 65535: b(); } Just wondering. Hedley.