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

Method and system for optimizing computer program

A technology of computer programs and optimization methods, applied in the field of computer programs, can solve problems such as low operating efficiency and impractical application

Active Publication Date: 2014-06-25
BEIJING PKUNITY MICROSYST TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the existing methods based on "semantic" equivalents still use the traditional non-static single-assignment form of intermediate representation. By constructing a huge value flow graph and performing data flow analysis on it, it is calculated how to perform the input program. transformation, the operating efficiency is very low, so it cannot be practically applied
How to explicitly express the "semantic" equivalence relationship in the program intermediate representation to improve the efficiency of optimization methods remains unsolved

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
  • Method and system for optimizing computer program
  • Method and system for optimizing computer program
  • Method and system for optimizing computer program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0108] Existing scalar optimization methods based on "semantic" equivalence still use the traditional intermediate representation in the form of non-static single assignment, by constructing a huge value flow graph and performing data flow analysis on it to calculate how to transform the input program , the operation efficiency is very low, so it cannot be practically applied. The invention discloses a scalar optimization method using a sparse value flow graph as an intermediate representation of a program, and adopts a new program intermediate representation form: "sparse value flow graph" form, which explicitly expresses the "semantic" equivalence relationship in the program It is included in the intermediate representation of the program, and on this basis, efficient scalar optimization is performed to achieve an efficient and better optimization method. The sparse value flow graph form is an extension of the static single-assignment form, which can be directly applied to t...

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 a method and a system for optimizing a computer program. The method comprises the following steps of: step 1, acquiring value numbers of each variable and each expression through value number analytic calculations; step 2, converting a static single assignment type computer program into a semi-sparse value flow graph type computer program; step 3, calculating the initial attribute, required for performing scalar optimization, of the semi-sparse value flow graph type computer program, if the initial attribute comprises all required optimization information, performing the step 4, otherwise expanding the semi-sparse value flow graph type computer program into a sparse value flow graph type computer program, calculating the attribute required for performing the scalar optimization, and when all the attributes are calculated, performing the step 4; and step 4, performing program transformation on the semi-sparse value flow graph type computer program or the sparse value flow graph type computer program according to the calculated attributes so as to optimize the computer program. The method and the system can improve the efficiency of program optimization.

Description

technical field [0001] The present invention relates to computer programs, in particular to a computer program optimization method and system. Background technique [0002] Programs running in computer systems are usually written in high-level languages ​​and translated and optimized by compilers. The optimal processing effect of the program determines the running performance of the program on the computer system. Programs written in some languages ​​(such as Java, C#, etc.) need to be translated and optimized during program execution. At this time, the execution efficiency of the optimization method itself will also affect the running time of the entire program. Therefore, an optimization method with high operating efficiency and good optimization effect is required in the computer system. [0003] Scalar optimization is a class of optimization techniques relative to parallel optimization (including instruction-level, data-level, thread-level, etc.). Many common optimiz...

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): G06F9/44
Inventor 程旭聂久焘刘先华
Owner BEIJING PKUNITY MICROSYST TECH