jump table
A list of addresses in memory, one per case of a switch, so the program can jump straight to the right case by looking it up.
A jump table is an array of code addresses (or offsets) indexed by a range-checked switch value; the dispatcher loads the entry and performs an indirect jump.
Examples
A
switchover cases 0 to 5 can become six 4-byte entries, entryopholding the distance to that case's code.
See also