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, high development cost, failure to use compiler analysis results, etc., and achieve the effect of strong scalability and good versatility

Inactive Publication Date: 2010-02-17
ZHEJIANG UNIV
View PDF0 Cites 34 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 with reference to the accompanying drawings, and the purpose and effects of the present invention will become more apparent.

[0025] The present invention includes four modules: a compiler module CM, a source code manager module SCMM, a debugging information processor module DIPM, and a graphics generator module GGM. The method proposed by the present invention uses these four modules to first convert the source code into IR form through CM, and then read the configuration file to determine the function list to be analyzed by the user and the graphic attributes to be generated. After analyzing the IR, start SCMM to analyze the debugging information, and determine the correspondence between the IR statement and the source code. On this basis, use CM to obtain the user-specified IR format program structure analysis result. Then start GGM, use DIPM to convert the analysis result in IR form into a graph model ex...

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 source code level, in particular to an analysis of debugging information carried by intermediate expressions generated by a compiler, and the program structure is graphically displayed at the source code level. Show the implementation method. Background technique [0002] The visualization method of the program structure is to display the logical structure of the program in a graphical manner. The logical structure of the program mainly includes two categories: control relations and data relations. The control relationship mainly refers to the control flow graph within the function and the calling relationship between functions, and the data relationship mainly refers to the data flow graph within the function. The visualization method of program structure can display the logical structure of the program in an intuitive way such as graph...

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 Applications(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