首页>
外国专利>
METHOD AND APPARATUS FOR ELIMINATING C RECURSION FROM A JAVA(TM) BYTECODE INTERPRETER
METHOD AND APPARATUS FOR ELIMINATING C RECURSION FROM A JAVA(TM) BYTECODE INTERPRETER
展开▼
机译:从JAVA TM字节码解释器消除C递归的方法和装置
展开▼
页面导航
摘要
著录项
相似文献
摘要
Methods and apparatus for eliminating C recursion from interpreter loops are disclosed. According to one aspect of the present invention, a computer-implemented method for substantially eliminating C recursion from the execution of static initializer methods in a virtual machine environment includes rewriting native C code associated with a static initializer as a Java(TM) method, and using a transition frame in a Java(TM) stack to execute the Java(TM) method. The method also includes using a native method to manipulate the Java(TM) stack, and using a first opcode in the transition frame. In one embodiment, using the first opcode in the transition frame includes using the first opcode to determine that the transition frame is associated with the static initializer. In another embodiment, the method further includes causing the static initializer to run, wherein the static initializer using a second opcode, and resuming execution at the second opcode after the static initializer has run.
展开▼