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

Instruction generation method and device, electronic equipment and storage medium

A technology for instruction generation and electronic equipment, applied in the computer field, can solve problems such as inability to save registers and restore optimization, achieve the effect of reducing the number of instructions and improving execution performance

Pending Publication Date: 2021-03-05
LOONGSON TECH CORP
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The technical problem to be solved by the embodiments of the present invention is to provide an instruction generation method, device, electronic equipment, and readable storage medium, so as to solve the problem that the saving and restoration of registers cannot be optimized when just-in-time compilation and static compilation are mixed.

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
  • Instruction generation method and device, electronic equipment and storage medium
  • Instruction generation method and device, electronic equipment and storage medium
  • Instruction generation method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0064] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0065] refer to figure 1 , which shows a flow chart of the steps of a method for generating instructions in Embodiment 1 of the present invention, which may specifically include the following steps:

[0066] Step 101, during the static compilation process, obtain the subroutine to be statically compiled called by the parent program that needs to be compiled just in time.

[0067] In the embodiment of the present invention, the program can only be executed after a compiling process, and the compiling process can be divided into a static compiling process and a just-in-time compiling process. For example, to execute a Java program, the source code file of the program needs to be compiled into a Java bytecode file, and then the JRE ...

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 an instruction generation method and device, and the method comprises the steps of obtaining a to-be-statically-compiled subprogram called by a to-be-statically-compiled parent program in a static compiling process, determining the use information of a register used by the subprogram, and generating a compiled storage instruction or recovery instruction ofthe register according to the use information in the real-time compiling process, so that the instant compiler can know the condition that the register is used by the statically compiled subprogram, and then the storage or recovery instruction can be generated only for the necessary register, thereby achieving the effect of reducing the number of instructions generated by the instant compiler, andimproviing the execution performance of the instantly compiled program.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to an instruction generating method, an instruction generating device, an electronic device and a readable storage medium. Background technique [0002] Dynamic compilation is a method used by some programming languages ​​to improve performance during execution, and generally refers to the compilation of programs at runtime. The opposite is pre-compilation, also called static compilation. Static compilation means that when the compiler compiles an executable file, it extracts the part of the corresponding static library (for example, a library with the extension name .a or .lib) that the executable file needs to call, and links it to the executable file. , so that the executable file does not depend on the dynamic link library when running. A typical example of static compilation is the compilation method of gcc (GNU Compiler Collection, GNU Compiler Suite). gcc will fi...

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): G06F8/41G06F9/448
CPCG06F8/41G06F9/4484
Inventor 敖琪王雪井田高翔
Owner LOONGSON TECH CORP