Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method, device and system for converging hotspot functions and variables in computer programs

A computer program and function technology, applied in the computer field, can solve problems such as failure to effectively improve system performance

Active Publication Date: 2014-04-09
济南闲什科技发展有限公司
View PDF6 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] figure 1 It is a schematic diagram of the code structure of functions and global variables in the source program file of the software system. The function call sequence in the critical path corresponding to the hot business of the software system is: funcD→funcB→funcF→funcA→funcP→funcG, figure 2 It is a schematic diagram of the structure of the code segment and data segment of the executable file obtained by the instrumentation statistical technology. The arrow line in the figure indicates the direction of the instruction jump when running the executable file. figure 2 It can be seen that the functions in the above critical path are gathered in the hot function segment. It can be seen from the figure that although the hot function is gathered together, the function call jump still exists and occurs 5 times, and the global variable access There are 6 jumps, therefore, there will still be more instruction cache misses and data cache misses when the system is running, so the statistical method of stub insertion still cannot effectively improve system performance

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, device and system for converging hotspot functions and variables in computer programs
  • Method, device and system for converging hotspot functions and variables in computer programs
  • Method, device and system for converging hotspot functions and variables in computer programs

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0075] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0076] image 3 A flowchart of a method for converging hotspot functions in a computer program provided by an embodiment of the present invention, such as image 3 As shown, the execution subject of the method in this embodiment may be a compiling device. Before the computer program is executed, the compiling device needs to compile the program c...

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 embodiment of the invention discloses a method, device and system for converging hotspot functions and variables in computer programs. The method for converging the hotspot functions in the computer programs includes the steps that source programs to be processed are acquired; the source programs are simulated and executed, calling information of each function in the source programs is collected when the source programs are executed to generate a critical path file, wherein the critical path file comprises one or more function critical paths when the source programs are executed; according to the critical path file, the hotspot functions, located in the same function critical path, in the source programs are compiled in the calling sequence and then linked into a same code segment, wherein the function critical paths are used for describing one or more hotspot functions and the calling sequence among the hotspot functions when the source programs are executed. According to the method, device and system, Cache Miss of instructions and Cache Miss of data can be effectively reduced.

Description

technical field [0001] The invention relates to computer technology, in particular to a method, device and system for gathering hotspot functions and variables in computer programs. Background technique [0002] In the process of computer program software development, programmers generally deploy function codes and variables in units of functional modules. After the source program is compiled and linked, the binary codes and global variables corresponding to the functions are also arranged according to their order in the source program file. Therefore, when the function and / or variable calls are adjacent or close, the access jump will not occur in the program execution, but when the function or global variable is called far away, the access jump will occur in the program execution, so that the processor in When accessing the cache, it is prone to more misses (Cache Miss). [0003] In order to reduce the Cache Miss phenomenon caused by access jumps during program execution, ...

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): G06F9/45G06F9/455
Inventor 谢江帆李继忠张凯敏
Owner 济南闲什科技发展有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products