Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method for determining static function call relations based on register transfer language

A technology of function call relationship and register transfer, applied in the direction of program control devices, etc., can solve the problem that the function call graph generation tool cannot reach it

Inactive Publication Date: 2014-04-23
TSINGHUA UNIV
View PDF2 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

These requirements are not met by existing function call graph generation tools

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 for determining static function call relations based on register transfer language
  • Method for determining static function call relations based on register transfer language
  • Method for determining static function call relations based on register transfer language

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The present invention will be further described below in conjunction with the accompanying drawings.

[0039] Such as figure 1 As shown, the present invention relates to a function call graph generation method based on Register Transfer Language (Register Transfer Language, RTL), and according to the method, a tool CG-RTL (call graph based on RTL, referred to as CG-RTL), which belongs to the field of software engineering and also belongs to the field of source code analysis.

[0040] The first is the data preprocessing stage, which includes compiling the source code to generate the target program, analyzing and processing the intermediate results of the compilation in this process to generate a relation file, which is also the internal calling function relation file and The external call function relationship file, based on the relationship file generated by the function preprocessing process, generates a corresponding function call graph and a function call relationsh...

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 discloses a method for determining static function call relations based on a register transfer language, and aims to provide a method to clearly describe function call relations among functions, files and modules in a software system. The method includes unloading compiled intermediate results generated in the source code compiling process in a manner of register transfer files, and acquiring function call relation files according to the compiled intermediate results; according to the function call relation files, adopting functions, files or modules as nodes, adopting the numbers of function call among functions, the files or the modules as edges, and generating function call graphs among the functions, the files or the modules to describe the function call relations; according to the function call relations files, generating function call relation lists to describe the function call relations.

Description

technical field [0001] The invention relates to the technical field of function calling, and specifically designs a method for determining a static function calling relationship based on a register transfer language. Background technique [0002] With the expansion of the source code scale, it is not only inefficient to simply rely on manual reading and analysis of the source code, but also it is difficult to quickly understand the structure and control flow of the entire source code. Therefore, how to rely on software tools and methods to analyze source code becomes more and more important. [0003] A function call graph is a directed graph, which is a static description of the function call relationship in a program. In the function call graph generated by the prior art, nodes represent functions, and directed edges represent calling and called relationships between functions. By observing the function call relationship diagram with functions as nodes, people can easily ...

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/44
Inventor 向勇汤卫东杜香燕孙卫真马东超杨彦卿陆慧梅
Owner TSINGHUA UNIV
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More