Unlock instant, AI-driven research and patent intelligence for your innovation.

Dynamic compiling method and device

A dynamic compilation and state technology, applied in the direction of program control device, program control design, instrument, etc., can solve the problems of slow program running speed, slow response of virtual machine, large occupation, etc.

Active Publication Date: 2016-06-29
LOONGSON TECH CORP
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, unlike static compilation such as traditional C / C++, the just-in-time compiler is dynamically compiled while the program is running, which introduces additional runtime overhead
If there are too many compiled methods, dynamic compilation will take up a lot of computer resources, which will affect the normal execution of the program and make the virtual machine less responsive to the outside world.
On the contrary, if there are too few methods compiled, most of the methods will be executed by the interpreter, causing the program to run very slowly

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
  • Dynamic compiling method and device
  • Dynamic compiling method and device
  • Dynamic compiling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0066] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0067] figure 1 It is a flow chart of the dynamic compilation method provided by the embodiment of the present invention. Such as figure 1 As shown, the dynamic compilation method provided by the embodiment of the present invention includes:

[0068] 101. When there are hot methods to be compiled in the current compilation queue, acquire the ru...

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 embodiment of the invention provides a dynamic compiling method and device. The dynamic compiling method comprises the following steps: when to-be-complied hotspot methods exist in a current compilation queue, obtaining the running speeds and the sizes of the to-be-complied hotspot methods in the current compilation queue; determining the priority levels of the to-be-complied hotspot methods according to the running speeds and the sizes of the to-be-complied hotspot methods; and scheduling the hotspot method with the highest priority level in the current compilation queue for compiling. According to the dynamic compiling method and device provided by the embodiment of the invention, the compiling throughput capacity can be greatly improved; and the response speed of a virtual machine is effectively improved.

Description

technical field [0001] The embodiment of the present invention relates to virtual machine technology, and in particular to a dynamic compilation method and device. Background technique [0002] A virtual machine (Virtual Machine, referred to as VM) refers to virtualizing a complete computer with complete hardware system functions and running in a completely isolated environment through software (or supplemented by a small amount of hardware support), and this virtual computer It also usually supports its own set of instructions, called the virtual machine instruction set. The virtual machine relies on the local physical machine, and simulates and executes the given virtual machine instruction sequence (that is, the target program) on the local machine through its execution engine. The execution engine of the virtual machine can be implemented by an interpreter. Because interpreters have the characteristics of high portability, low implementation cost, and small memory foot...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/455G06F9/45
Inventor 傅杰靳国杰高翔王剑
Owner LOONGSON TECH CORP