Program code compiling method and device, electronic equipment and storage medium

A technology of program code and compiling method, which is applied in the direction of code compilation, program code conversion, software engineering design, etc., can solve the problems of affecting the performance of program code and wasting computing power, so as to reduce computing power resources, reduce the frequency of modification, The effect of reducing instruction consumption

Active Publication Date: 2022-06-24
UCWEB
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the code volume of the program code is relatively large and there are many functions to be called, the above method will waste a lot of computing power and affect the performance of the program code

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0013] In order to make the objectives, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0014] Usually, when the calling function calls the called function, it is assumed that the called function will modify the values ​​stored in all registers in the CPU (central processing unit, central processing unit). On the call stack, and after the function call ends, the value saved in the call stack is restored to the regist...

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 program code compiling method and device, electronic equipment and a storage medium, in the embodiment of the invention, a callee register mechanism is introduced in the program code compiling process, so that when a program runs, if a called function needs to modify a register in a callee storage register set, the callee storage register set can be modified, and the program code compiling efficiency is improved. If the value of the register does not need to be modified, the value of the register is stored to the call stack and recovered to the register when the call is finished, and if the value of the register does not need to be modified, the value of the register can not be stored to the call stack, so that the instruction consumption can be reduced to a great extent, and the computing power resource consumed by storing the register is reduced; the register modification frequency is reduced, and the program code performance and size are improved.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular, to a program code compilation method, apparatus, electronic device, and storage medium. Background technique [0002] The program code usually includes multiple functions, and the multiple functions have both a calling function and a called function called by the calling function. When the calling function calls the called function, it needs to pass data through registers and the call stack. Usually, when the calling function calls the called function, it is assumed that the called function will modify the values ​​stored in all registers in the CPU (central processing unit, central processing unit). On the call stack (Call stack), and after the function call ends, the value saved in the call stack is restored to the register. If the code size of the program code is relatively large and there are many called functions, the above method will waste a lot of computin...

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/41
CPCG06F8/41G06F8/447G06F8/4432
Inventor 林作健
Owner UCWEB
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products