Branch Table - Jump Table Example in PL/I

Jump Table Example in PL/I

PL/I implements a jump table as an array of label variables. These may be initialized in an unusual way by using a subscripted statement label. PL/I label variables are not simply the address of the statement, but usually contain additional information on the state of the code block to which they belong.

declare lab (10) label; declare x fixed binary; goto lab(x); lab(1): /* code for choice 1 */ ; ... lab(2): /* code for choice 2 */ ; ...

Read more about this topic:  Branch Table

Famous quotes containing the words jump and/or table:

    “Well, you look so pretty in it
    Honey, can I jump on it sometime?
    Yes, I just wanna see
    If it’s really that expensive kind
    You know it balances on your head
    Just like a mattress balances
    On a bottle of wine
    Your brand new leopard-skin pill-box hat.”
    —Bob Dylan [Robert Allen Zimmerman] (b. 1941)

    “A man who can dominate a London dinner table can dominate the world. The future belongs to the dandy. It is the exquisites who are going to rule.”
    —Oscar Wilde (1854–1900)