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

Program processing method, device, electronic device, and storage medium

A processing method and program technology, applied in the field of real-time compilation, can solve problems such as low debugging efficiency, and achieve the effect of improving debugging efficiency

Active Publication Date: 2021-11-19
LOONGSON TECH CORP
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, the usual processing method is to find an entry point based on experience, and then perform single-step debugging on the program generated by the JIT compiler, which is inefficient in debugging

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
  • Program processing method, device, electronic device, and storage medium
  • Program processing method, device, electronic device, and storage medium
  • Program processing method, device, electronic device, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0037] At present, the instructions generated by the just-in-time compiler lack debugging information such as file names and line numbers, and the program generated by the just-in-time compiler (referred to as the program) may use jump instructions that do not save stack information during operation, such as using The relative or absolute jump instruction does not push the return address to the stack like the function call instruction, that is, the program running track cannot be obtained from the stack information. After the program fails to run, the program debugger can only rely on the experience of the program debugger to find an entry, and perform single-step debugging of the program to determine the error location when the pr...

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 present invention provide a program processing method, device, electronic equipment, and storage medium, and relate to the technical field of just-in-time compilation. The method includes: during the program compilation process, recording the corresponding Compiler call information, the compiler call information is used to determine the call relationship between the call functions corresponding to the jump instruction; in the process of executing the jump instruction, record the corresponding execution flow information, so The execution flow information is used to determine the execution track of the jump instruction; and the debugging information of the program is generated according to the compiler calling information and the execution flow information. Through the embodiments of the present invention, when the program fails to run, the error location of the program can be located based on the debugging information of the program, thereby improving the debugging efficiency of the program.

Description

technical field [0001] The present invention relates to the technical field of just-in-time compilation, in particular to a program processing method, a program processing device, an electronic device and a storage medium. Background technique [0002] As the just-in-time compilation technology is widely used, just-in-time (JIT) compilers exist in more and more software, such as JS engines and Java virtual machines. [0003] In the early stage of JIT compiler development, the JIT compiler generated programs often failed to run the program. One of the common mistakes was that the JIT compiler generated programs to access a section of illegal memory. At present, the usual processing method is to find an entry based on experience, and then perform single-step debugging on the program generated by the JIT compiler, which is inefficient in debugging. Contents of the invention [0004] In view of the above problems, embodiments of the present invention are proposed to provide a...

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 Patents(China)
IPC IPC(8): G06F8/41G06F11/36
CPCG06F8/41G06F11/3644
Inventor 余银彭飞黄文君
Owner LOONGSON TECH CORP