Invention Grant
US08156482B2 System and method for efficiently generating native code calls from byte code in virtual machines
有权
用于从虚拟机中的字节码高效地生成本地代码调用的系统和方法
- Patent Title: System and method for efficiently generating native code calls from byte code in virtual machines
- Patent Title (中): 用于从虚拟机中的字节码高效地生成本地代码调用的系统和方法
-
Application No.: US12028653Application Date: 2008-02-08
-
Publication No.: US08156482B2Publication Date: 2012-04-10
- Inventor: Marcus Lagergren
- Applicant: Marcus Lagergren
- Applicant Address: US CA Redwood Shores
- Assignee: Oracle International Corporation
- Current Assignee: Oracle International Corporation
- Current Assignee Address: US CA Redwood Shores
- Agency: Fliesler Meyer LLP
- Main IPC: G06F9/45
- IPC: G06F9/45 ; G06F9/44

Abstract:
A system and method for generation of efficient calls from compiled byte code within a virtual machine (VM) or Java Virtual Machine (JVM) environment. Current techniques used to interface dynamically compiled byte code with native libraries using stubs are unsatisfactory due to non-optimal performance and the large amount of manual work needed to maintain the stub generation code. An embodiment of the present invention addresses this by providing a system and a method for automatic stub generation based on a small set of parameters stored in a ParamInfo structure. In accordance with an embodiment, the system comprises a computer with native libraries; a virtual machine for executing a software application; a memory space for the compiled byte code; and a compiler with a calling convention adaptor that integrates native calls into the high level analysis step of the compilation of byte codes, so that the overhead for the native call is reduced.
Public/Granted literature
- US20080127143A1 SYSTEM AND METHOD FOR EFFICIENTLY GENERATING NATIVE CODE CALLS FROM BYTE CODE IN VIRTUAL MACHINES Public/Granted day:2008-05-29
Information query