C language code dependency relationship extraction method based on static analysis
A technology of dependency relationship and static analysis, applied in the field of computer technology and software engineering, can solve the problems of complex, unsupported package concept, insufficient dependency analysis work, etc., to achieve the effect of great utilization value and broad application prospects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0045] In order to explain in detail the technical content, structural features, achieved goals and effects of the technical solution, the following will be described in detail in conjunction with specific embodiments and accompanying drawings.
[0046] The flow chart of the static analysis-based C language code dependency extraction method provided according to the embodiment of the method is as follows: figure 1 , the process has the following steps:
[0047] Step (1): import a C language source code file, carry out static analysis to the source code in this file, obtain the information of each macro instruction and the information of each variable, function, type, the concrete C language description of embodiment is:
[0048]
[0049]
[0050] Where main.c is the input source code file, h1.h and h2.h are the header files included in the input file, and lib.c is the library file included in the compilation instruction corresponding to the input file.
[0051] It shoul...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


