one pass switch code (was forward references in typedefs)
dave brown
dave at motto.UUCP
Thu Jul 27 03:02:42 AEST 1989
In article <18735 at mimsy.UUCP> chris at mimsy.UUCP (Chris Torek) writes:
>Since the code that implements the switch is not generated until after
>all the cases are known, the compiler can select one of the various
>alternatives. (Incidentally, heap switches are better for sparse
>tables above a moderate number of comparisons. PCC has used all three
>of these forms---direct, heap, and jump table switches---for years, and
>PCC is a one-pass compiler.)
I understand direct and jump table switches, but what's a heap switch?
-----------------------------------------------------------------------------
| David C. Brown | uunet!mnetor!motto!dave |
| Motorola Canada, Ltd. | 416-499-1441 ext 3708 |
| Communications Division | Disclaimer: Motorola is a very big company |
-----------------------------------------------------------------------------
More information about the Comp.lang.c
mailing list