What kind of code does switch/case make?

Bjorn Engsig bengsig at dk.oracle.com
Thu Feb 28 22:04:32 AEST 1991


Article <1991Feb26.025435.16306 at wpi.WPI.EDU> by fenn at 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 at oracle.com, bengsig at oracle.nl

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



More information about the Comp.lang.c mailing list