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

Visualizing method of source code level program structure

A program structure and source code technology, applied in the computer field, can solve problems such as single function, inability to use the compiler to analyze the results, and lack of versatility, etc., to achieve the effect of good versatility and strong expansibility

Inactive Publication Date: 2012-09-05
ZHEJIANG UNIV
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

There are three shortcomings of this method: 1. It is not universal. If the analysis target is written in different programming languages, then analysis tools for different languages ​​must be developed, resulting in increased development costs
2. The function is single, and it can only display the control relationship of the program. Since the analysis results of the compiler cannot be used, the internal structure of the program cannot be displayed in depth.
In addition, the current analysis results of compilers are generally described in the form of intermediate expressions (Intermediate Representation, referred to as IR) or text output, which increases the difficulty for non-compiler professionals to understand the analysis results

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
  • Visualizing method of source code level program structure
  • Visualizing method of source code level program structure
  • Visualizing method of source code level program structure

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The present invention will be further described in detail below in conjunction with the accompanying drawings, and the purpose and effect of the present invention will become more apparent.

[0025] The present invention includes four modules: compiler module CM, source code manager module SCMM, debugging information processor module DIPM, and graph generator module GGM. The method proposed by the present invention utilizes these four modules, first converts the source code into the IR form through CM, and then reads the configuration file to determine the function list to be analyzed by the user and the graphic attributes to be generated. Then analyze the IR, start SCMM to analyze the debugging information, and determine the corresponding relationship between the IR statement and the source code. On this basis, use CM to get user-specified IR form program structure analysis results. Then start GGM, use DIPM to convert the analysis results in the form of IR into a grap...

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 visualizing method of a source code level program structure. The method can analyze morphology, syntax and semanteme of a source code programmed by different programming languages, can analyze the program structure in deep level, and can display the information of various analysis structures, such as a function call graph, a control flow chart, a data flow graph, a strongly communicated region and a dominator tree, at the source code level in a graphical form. Compared with the prior visualizing method aiming at specific programming languages and only displaying the control flow, the method has better universality and extensibility and has stronger program structure analysis capability.

Description

technical field [0001] The invention belongs to the field of computer technology, and relates to a method for visualizing program structure at the source code level, in particular to a method for analyzing debugging information carried by intermediate expressions generated by a compiler, and graphically displaying the program structure at the source code level The implementation method shown. Background technique [0002] The visualization method of the program structure refers to displaying the logical structure of the program in a graphical way. The logical structure of the program mainly includes two types: control relationship and data relationship. The control relationship mainly refers to the control flow graph inside the function and the call relationship between functions, and the data relationship mainly refers to the data flow graph inside the function. The visualization method of program structure can display the logical structure of the program in an intuitive ...

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/44G06F9/45
Inventor 陶文质史册姚懿鹏徐志远李橙
Owner ZHEJIANG UNIV
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