首页> 外国专利> 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.
机译:公开了用于从解释器循环中消除C递归的方法和设备。根据本发明的一个方面,一种用于在虚拟机环境中从静态初始化方法的执行中基本上消除C递归的计算机实现的方法,包括将与静态初始化方法相关联的本地C代码重写为Java编程语言方法,并且使用Java编程语言堆栈中的过渡帧,以执行Java编程语言方法。该方法还包括使用本机方法来操纵Java编程语言堆栈,以及在过渡帧中使用第一操作码。在一个实施例中,在过渡帧中使用第一操作码包括使用第一操作码来确定过渡帧与静态初始化器相关联。在另一个实施例中,该方法还包括使静态初始化器运行,其中该静态初始化器使用第二操作码,以及在静态初始化器已经运行之后在第二操作码处恢复执行。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号