Method and apparatus for executing branch instructions of a stack-based program
OwnerMarciej Kubiczek, Christopher Robert Turnerinventors
Life of this patent
Estimating the term…
Loading patent…
OwnerMarciej Kubiczek, Christopher Robert Turnerinventors
Estimating the term…
A method of executing a stack-based program containing branch instructions using a processor having a register-based architecture, the processor having means for implementing a stack using registers of the processor such that the processor may operate in a stack-based mode as well as a register-based mode, the method comprising the steps of: translating each branch instruction of the stack-based program into a branch instruction of a register-based program and including in the translated instruction an indication that the instruction relates to the stack-based operation mode; examining each translated branch instruction and, if the instruction includes said indication, updating a stack counter of said means for implementing a stack; and executing the branch instruction.
A method of executing a stack-based program containing branch instructions using a processor having a register-based architecture, the processor having means for implementing a stack using registers of the processor such that the processor may operate in a stack-based mode as well as a register-based mode, the method comprising the steps of:
A method according to any one of the preceding claims and comprising translating stack-based instructions, including branching instructions, fetched from the program memory prior to execution of the program and storing the program in memory.
A method according to any one of the preceding claims, wherein the stack based-program is a JVM program, and the processor having a register-based architecture is a RISC processor such that the register-based instructions are RISC instructions.
A register-based processor system comprising:
Dependencies are inferred from the claim text.