Agent modeling method for multi-objective compilation optimization sequence selection

A technology for optimizing sequences and modeling methods, applied in the field of compiler optimization, can solve problems such as huge algorithm execution time overhead and computational cost constraints, and achieve the effects of reducing compilation times, improving operating efficiency, and reducing algorithm running time

Active Publication Date: 2020-12-04
DALIAN UNIV OF TECH
View PDF3 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, if the multi-objective optimization algorithm in the heuristic search algorithm is applied to the compilation and optimization sequence selection, since a large number of fitness evaluations are required for the population individuals in the process, the actual application needs to be compiled to obtain executable code. Obtaining the code size, another optimization goal in terms of running speed, calculating the fitness value also needs to actually run the program, which will bring about considerable computational cost constraints
F...

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
  • Agent modeling method for multi-objective compilation optimization sequence selection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The present invention is deployed on a server, and the required compiler needs to be installed according to the problem of compiling optimization sequence selection. The method is composed of encoding program, agent model construction program, evolution operation program and program compilation program.

[0039] Such as figure 1 As shown, the selection of a compiling optimization sequence that satisfies two optimization objectives for the program to be compiled, that is, the running speed of the compiled executable code and the code size, is carried out as follows. In the search iteration process, in addition to the deterministic factors specified in the compilation environment, other factors, such as population size, iteration termination conditions, crossover operators, etc., are set according to specific situations.

[0040] Step 1: Encoding. Use binary encoding, that is, the 0, 1 string generated by the {0, 1} character set to represent the compilation optimization ...

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 provides an agent modeling method for multi-objective compilation optimization sequence selection, aims to provides a solution for solving a calculation cost constraint problem of the multi-objective compilation optimization sequence selection and belongs to the field of compiler optimization. The method comprises the following steps of: firstly, performing binary coding on a compilation optimization sequence; respectively designing fitness functions for the scale and the running speed of two optimization target codes; generating a child population after selection and crossover operations; combining the child population with a parent population; performing quick non-dominated sorting to generate a new population; and finally obtaining a Pareto optimal solution set. In the search iteration process, the compilation optimization sequence and the two corresponding target fitness values are used for constructing an agent model, the agent model is used for calculating approximate fitness values for the child population generated by evolution operation, and actual fitness values are calculated for excellent solutions, so that the evolution efficiency is improved. According to the method, the compilation optimization sequence meeting multiple objectives (such as running speed and code scale) can be effectively selected for a program to be compiled, and the problem of calculation cost constraint caused in the iteration process is solved.

Description

technical field [0001] The invention belongs to the technical field of compiler optimization, and relates to a proxy modeling method for the calculation cost constraint problem in multi-objective compilation optimization sequence selection. Background technique [0002] In the actual development process, the compiled target machine code needs to have relatively ideal performance, such as small executable code size and fast execution speed. However, for the compiled target machine code, code size and running speed are optimization goals that have certain conflicts. If the program running speed is pursued, the program scale will be enlarged. If the pursuit of smaller executable code size, it will affect the running speed of the program. Therefore, how to select an appropriate compilation optimization sequence for the program to be compiled so that it can achieve a trade-off between the two optimization goals of code size and running speed is a key issue. Although the compil...

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
IPC IPC(8): G06F8/41G06N3/12G06N5/00
CPCG06F8/4434G06F8/4441G06N3/126G06N5/01
Inventor 江贺高国军任志磊
Owner DALIAN UNIV OF TECH
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