首页>
外国专利>
Method and apparatus for eliminating C recursion from a Java programming language bytecode interpreter
Method and apparatus for eliminating C recursion from a Java programming language bytecode interpreter
展开▼
机译:从Java编程语言字节码解释器消除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 programming language method, and using a transition frame in a Java programming language stack to execute the Java programming language method. The method also includes using a native method to manipulate the Java programming language 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.
展开▼