[comp.lang.c] What kind of code does switch/case make?

bengsig@dk.oracle.com (Bjorn Engsig) (02/28/91)

Article <1991Feb26.025435.16306@wpi.WPI.EDU> by fenn@wpi.WPI.EDU (Brian Fennell) says:
|What kind of code does switch(fu){ case c1: ... case c2: ... } make?
The compiler is free to make whatever code is prefers such as jump table,
if-else sequence a combination, etc. as long as it sticks to the semantics
of the switch.  There is no general answer to your question.
-- 
Bjorn Engsig, ORACLE Corporation, E-mail: bengsig@oracle.com, bengsig@oracle.nl

            "Stepping in others footsteps, doesn't bring you ahead"