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

Dynamic compilation method and apparatus

A technology of dynamic compilation and optimization method, which is applied in the direction of program control design, instrumentation, electrical digital data processing, etc. It can solve the problems of redundant instructions and affect the performance of virtual machine system, so as to improve performance, reduce the number of instructions, improve The effect of performance

Active Publication Date: 2016-10-05
LOONGSON TECH CORP
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The local object code compiled and output by the prior art has many redundant instructions, which affects the system performance of the virtual machine

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 compilation method and apparatus
  • Dynamic compilation method and apparatus
  • Dynamic compilation method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] 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.

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

[0042] 101. Obtain predicted values ​​of parameters of the hot method to be compiled from the code cache ...

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

Embodiments of the invention provide a dynamic compilation method and apparatus. The method comprises the steps of obtaining a predicted value of a parameter of a to-be-compiled hotspot method from a code cache of a virtual machine; if it is determined that an input value of parameter input is different from the predicted value, updating the predicted value to the input value; replacing a corresponding variable in an intermediate code with the predicted value after converting the to-be-compiled hotspot method into the intermediate code; and optimizing the replaced intermediate code and converting the optimized intermediate code into a to-be-executed local target code. According to the dynamic compilation method and apparatus provided by the embodiments of the invention, the scale of codes generated by compilation can be reduced and the system performance of the virtual machine can be 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 is a conversion layer built between the instruction set architecture (ISA) or the application binary interface (ABI). The virtual machine provides a virtual execution environment different from the underlying machine for the upper-layer operating system or application program. The Java virtual machine is a kind of virtual machine. It has its own perfect architecture and corresponding instruction system, which shields the information related to the specific platform, so that the Java program only needs to generate the target code running on the virtual machine, and it can run on various Runs without modification on the platform. [0003] The virtual machine relies on the local physical machine, and simulates and executes the given virtual machine instruction sequence...

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/45
Inventor 王一光靳国杰高翔
Owner LOONGSON TECH CORP
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