Patent ID: 6205578
Filing Date: 2001-03-20
Classification: G06F

Abstract:
A method for providing a multi-state interpreter for an stack-based programming language, said multi-state interpreter being adapted to run on a microprocessor having a plurality of registers, said method comprising:providing, for a first state of said multi-state interpreter, a first interpreter for said stack-based programming language operates with a stack with no elements of said stack stored in said registers;providing, for a second state of said multi-state interpreter, a second interpreter for said stack-based programming language, which operates said stack with an element of said stack stored in one of said register;executing said first interpreter in said first state until an instruction of said programming language is encountered that requires accessing said element, whereupon, said first interpreter transfers said element from said stack to said resister;transitioning said multi-state interpreter from said first state to said second state; andexecuting said second interpreter in said second state.