Patent ID: 7086039

Claim:
A method, performed by a computer, of translating computer source code into optimized object code, the computer source code containing a first label statement defining a first label, a second label statement defining a second label, and a third label statement defining a third label, the first label, the second label and the third label not being case labels, the computer source code also containing a computed goto statement for instructing a computer to branch to the first label or to the second label, but not to the third label, the method comprising: a) generating a list of labels contained within at least a portion of the computer source code, the list of labels including the first label and the second label, but not the third label; b) translating the computer source code into an intermediate language, the act of translating the computer source code including translating the computed goto statement into an indirect goto statement within the intermediate language; and c) generating object code that includes the first label and the second label but does not include the third label.