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

Function parameter optimization method, compiler, chip and electronic equipment

An optimization method and function technology, applied in the computer field, can solve the problems of slow stack transfer parameters, affecting software code execution efficiency, etc., to achieve the effect of fast speed and improved execution efficiency

Inactive Publication Date: 2020-12-08
SHENZHEN GOODIX TECH CO LTD
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The inventors have found that there are at least the following problems in the prior art: according to the existing function call specification, when the compiler optimizes the software code, if the length of the parameter of the function is greater than the length of the two parameter registers, it will directly use the stack to process the parameter. Passing, the speed of stack passing parameters is slow, which affects the execution efficiency of software 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
  • Function parameter optimization method, compiler, chip and electronic equipment
  • Function parameter optimization method, compiler, chip and electronic equipment
  • Function parameter optimization method, compiler, chip and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the purpose, technical solution and advantages of the present application clearer, some embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0024] The first embodiment of the present application relates to a function parameter optimization method, which is applied to the compiler in the chip. The chip is a processor chip. The compiler is used to optimize the code of the program. The front end will translate the user's high-level language code into a suitable The intermediate code form optimized by the compiler is called intermediate intermediate representation, referred to as MIR, and then the MIR is optimized, and the backend converts the optimized MIR into the form of back-end code, which ...

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 invention relates to the technical field of testing, and provides a function parameter optimization method, a compiler, a chip and electronic equipment. The parameter optimization method of the function comprises the steps that the minimum value of the register pressure allowance of a called function, the register pressure allowance of a calling function and the allowance of a parameter register serves as the register allowance of the called function; for each aggregation quantity parameter needing stack transfer, the aggregation quantity parameter is optimized according to the length of the aggregation quantity parameter and the register allowance to obtain an optimized polymer parameter, and at least part of the optimized aggregation quantity parameter is a scalar. According to the technical scheme of the embodiment of the invention, the parameter register is utilized as much as possible to transmit the aggregation quantity parameter needing to be transmitted by using the stack in the called function, register resources can be fully utilized, a scalar part in the optimized aggregation quantity parameter can be transmitted by using the parameter register, the speed is relatively high, and the execution efficiency of compiled codes is improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a function parameter optimization method, compiler, chip and electronic equipment. Background technique [0002] The performance of a computer system program depends on two aspects, one is the performance of the computer hardware, and the other is the performance of the software itself running on the computer hardware. The performance of the software itself includes the execution efficiency of the software and the code size of the software. The compiler is responsible for optimizing the execution efficiency of the software and the code size of the software, so as to improve the performance of the compiled software as much as possible. [0003] The inventors have found that there are at least the following problems in the prior art: according to the existing function call specification, when the compiler optimizes the software code, if the length of the parameter of t...

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/443
Inventor 曹岚健朱辉
Owner SHENZHEN GOODIX TECH CO LTD