A global data address allocation method and related device

A technology of global data and distribution device, applied in the field of computer science, can solve the problems of first cache miss, cache miss, etc., and achieve the effect of reducing cache miss, improving execution efficiency, and improving spatial locality

Active Publication Date: 2016-08-24
HUAWEI TECH CO LTD +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the executable file executes an instruction that uses global data a, the central processing unit (CPU, Central Processing Unit) issues an instruction to put global data a into a register. Since this is the first access to global data a, therefore The global data a is not in the cache, causing the first cache miss
After the instruction using global data a is executed, global data a and several adjacent data will be placed in a cache line (ie cacheline) of the cache. If the instruction using global data b is executed at this time, it will be the same as The above process is similar, since the global data b is not in the cache, the instruction using the global data b will cause the second cache miss

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
  • A global data address allocation method and related device
  • A global data address allocation method and related device
  • A global data address allocation method and related device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] Embodiments of the present invention provide a global data address allocation method and a related device.

[0053] In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, various other embodiments obtained by persons of ordinary skill in the art without making creative efforts all belong to the protection scope of the present invention.

[0054] A method for allocating addresses of global data provided by an embodiment of the present invention is described below, please refer to figure 1 , the global data address allocation method in the embo...

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

An embodiment of the invention discloses a method and a relevant device for allocating addresses to global data. The method for allocating the addresses to the global data includes grouping the global data in source programs; allocating the corresponding addresses to the global data in each group, allocating the global data in each group in the same cache line and aligning initial positions of the global data in each group to an initial position of the corresponding cache line; allocating the corresponding addresses to ungrouped global data if the ungrouped global data are available. All the global data in the same group meet conditions that all the global data in the same group are used in the same basic block, the sum of the data sizes of all the global data in the same group is not larger than the size of the corresponding cache line of a computer system, and the total execution number of the same basic block is larger than a preset total execution number. According to the technical scheme, the method and the relevant device have the advantage that the probability of cache missing due to access to global data can be effectively reduced.

Description

technical field [0001] The invention relates to the field of computer science and technology, in particular to a global data address allocation method and a related device. Background technique [0002] In the field of computer science and technology, how to correctly and effectively convert the source program written by the programmer into a file that can be executed on the computer has always been one of the hot spots of research. At present, the generation of executable files from the source program is uniformly divided into three stages, that is, the source program is processed by a compiler, an assembler, and a linker successively. The processing process consisting of the above three stages needs to complete two tasks: one is to convert the high-level language code in the source program into a computer-recognizable instruction sequence; the other is to allocate a memory address for the data used in the source program to store the data. Among the data involved in the s...

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): G06F12/02
Inventor 刘颖
Owner HUAWEI TECH CO LTD
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