Maximum complete subgraph-based embedded system register allocation method

A register allocation and embedded system technology, applied in memory systems, instruments, gene models, etc., can solve the problems of not considering overflow cost and reducing register allocation efficiency, so as to improve register allocation efficiency, reduce overflow cost and overflow variable individual Number, the effect of speeding up the evolution rate

Inactive Publication Date: 2013-11-20
XIDIAN UNIV
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although CFPX is better than GPX in design, it fully considers the conflict relationship between the intermediate variables stored in the inherited registers, but it only considers the number of intermediate variables, and does not consider the overflow cost of each variable, so it cannot Called a perfect crossover operator, the obtained register allocation scheme still has more intermediate variables spilled into the memory, which reduces the efficiency of register allocation

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
  • Maximum complete subgraph-based embedded system register allocation method
  • Maximum complete subgraph-based embedded system register allocation method
  • Maximum complete subgraph-based embedded system register allocation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] Refer to attached figure 1, the specific implementation steps of the present invention are described as follows:

[0036] Step 1. Initialize the evolutionary population.

[0037] The mutual interference graph of the intermediate variables in this example is as follows figure 2 As shown, the nodes 0-9 in the figure represent ten intermediate variables, and the intermediate variables represented by the two nodes connected by each edge cannot be placed in the same register. Table 1 shows the overflow cost consumed when the intermediate variable represented by each node is overflowed to the memory. right figure 2 Take the complementary graph of the inter-interference graph of the intermediate variables shown to obtain the complementary graph G, such as image 3 shown. image 3 The intermediate variables represented by any two nodes connected by edges in G can be placed in the same register. Set the number of registers S to 4, and initialize a population individual ...

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 a maximum complete subgraph-based embedded system register allocation method, which mainly solves the problems that a heuristic algorithm has poor allocation effect and overflow cost is too high due to no consideration of the overflow cost in a crossover operator part in an evolutionary algorithm. The method is implemented by the following steps of: (1) taking a complement from an intermediate variable mutual interference graph to obtain the complement G; (2) randomly dividing all nodes into two classes, respectively putting the nodes into a set A or a set B, and completing initialization of population; (3) crossing an individual in the population by using an overflow cost-based maximum complete subgraph crossover operator SC-MCX to generate a subgeneration individual; and (4) optimizing the subgeneration individual by using a local search operator LSP, replacing an individual having the maximum fitness function value in parent individuals by using the optimized subgeneration individual, and continuously participating in population evolution. By the method, the population evolution speed is improved, the overflow cost and the overflow variable number of the individual are reduced, and the method can be used for embedded system register allocation.

Description

technical field [0001] The invention belongs to the field of computer technology, and relates to an embedded system, in particular to a method for allocating registers of an embedded system based on a maximum complete subgraph. Intermediate variables are stored in registers as much as possible, thereby reducing overflow costs and the number of overflow variables, improving the utilization of registers, and improving the compilation efficiency of programs in embedded systems. Background technique [0002] In an embedded system, a program is usually written to achieve a fixed function, so it is required that the written program can generate high-quality code after compilation and have high execution efficiency. Both memory and registers are used to store intermediate variables generated during program compilation. Compared with memory, the access speed of registers is much faster, but the number is very small. During program compilation, if registers cannot store all interme...

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/30G06F9/45G06N3/12
Inventor 吴建设焦李成畅志艳陈为胜钟桦王爽侯彪吴家骥公茂果
Owner XIDIAN UNIV
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