HC08: !@#$?%& Switch

Discussion created by Guest on Aug 23, 2006
Latest reply on May 10, 2012 by andrei luchuk
Has anyone noticed that CW seems to compile a C "switch" statement very poorly?  It looks like it converts the arguement into an "int" then do some sort of division into a table (presumeably to account for the fact that you might have 65,535 "case" statements).  Has anyone been able to have an efficient switch, or should I just use a bunch of if...elseif...else statements?
 
BTW, I'm using CW for the HC08.
 
Thanks,
Tomahawk

Message Edited by CrasyCat on 2007-04-13 02:19 PM

Outcomes