Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for calling local interface of virtual machine

A local interface, virtual machine technology, applied in the computer field, can solve problems such as reducing the response speed, and achieve the effect of improving the response speed and flexible methods

Inactive Publication Date: 2011-09-21
SHENZHEN NETCOM ELECTRONICS CO LTD
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This open source virtual machine needs to combine the corresponding operations with the devices in the physical computer for simulation when simulating the application, which greatly reduces the response speed

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for calling local interface of virtual machine
  • Method and device for calling local interface of virtual machine
  • Method and device for calling local interface of virtual machine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] figure 1 A method for invoking a local interface by a virtual machine in an embodiment is shown, including the following steps:

[0038] Step S101, load instructions. In this embodiment, the application program is expressed in the form of instructions in the virtual machine, and the virtual machine implements the functions of the application program by executing the instructions. For a function call, when the application program enters the called function, it is compiled into a calling instruction. At this time, the parameters required by the function are put into the stack or random access memory, and then instructions are generated to complete the loading of the instructions.

[0039] Step S102, explaining the instruction and instruction parameters. In this embodiment, for example, for the "call gui_init" instruction, it appears in the form of "0xAB," in the virtual machine, so after explanation, it can be known that 0xAB is the call instruction, 0xCD, oxEF are the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for calling the local interface of a virtual machine. The method comprises the following steps of: loading a command; explaining the command and a command parameter; judging whether the command is a calling command, if so, judging whether a called target address is a local interface address, and if not, reading the command parameter; and skipping to execute a corresponding local interface function according to the command parameter. By adopting the method and device for calling the local interface of the virtual machine, a command needing to be called locally in a program is executed by directly reading the command parameter. The method is implemented independent of a certain specific command set, in particular of a command set with an intellectual property, so that the method for calling the local interface of the virtual machine is more flexible; and reading of the command parameter and execution of the command are performed without real hardware, thus the reaction speed is increased greatly.

Description

【Technical field】 [0001] The invention relates to computer technology, in particular to a method and a device for calling a local interface by a virtual machine. 【Background technique】 [0002] A virtual machine (Virtual Machine) is an application program running on a physical computer. It is a computer system simulated on a physical computer through related virtual machine software, and works like a real computer. Virtual machines can be divided into Java virtual machines and open source virtual machines. [0003] In actual use, the Java virtual machine uses the "local interface specific instructions" called locally in the Java instruction set to realize the interaction between the internally running Java code and applications and libraries written in other languages, so that any local application can be embedded In the Java virtual machine. "Native interface specific instructions" are "native programming interface" specific instructions specifically defined in the Java i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/48
Inventor 钟衍徽
Owner SHENZHEN NETCOM ELECTRONICS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products