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

著录项

  • 公开/公告号WO0197015A3

    专利类型

  • 公开/公告日2003-08-28

    原文格式PDF

  • 申请/专利权人 SUN MICROSYSTEMS INC.;

    申请/专利号WO2001US16412

  • 发明设计人 PLUMMER CHRISTOPHER J.;LONG DEAN R. E.;

    申请日2001-05-21

  • 分类号G06F9/455;G06F9/40;

  • 国家 WO

  • 入库时间 2022-08-21 23:56:07

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号