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

A method and system for analyzing module dependencies

A technology of dependency relationship and analysis method, which is applied in the field of module dependency analysis method and system, can solve the problems of inability to target static libraries, and cannot analyze the circular dependency relationship of binary object files, and achieves the effect of rapid acquisition and simple calculation process.

Active Publication Date: 2021-11-30
FENGHUO COMM SCI & TECH CO LTD
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this command can only target dynamic libraries, not static libraries, and can only analyze whether there is a dependency relationship between binary object files, but cannot analyze whether there is a circular dependency between these binary object files, etc.

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
  • A method and system for analyzing module dependencies
  • A method and system for analyzing module dependencies
  • A method and system for analyzing module dependencies

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0040] An embodiment of the present invention provides a method for analyzing module dependencies, which includes:

[0041] Obtain all non-system modules in the software to be analyzed to construct a module group;

[0042] Get the dependencies between all modules in the module group;

[0043] Establish a dependency relationship matrix representing the dependency relationship between all modules in the module group, and judge whether there is a circular dependency relationship between non-system modules in the software to be analyzed according to the dependency relationship matrix.

[0044] The modules in the software to be analyzed include system modules and non-system modules. Taking binary object files implemented in C language as an example, modules are binary object files that can form the final executable file. System modules re...

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 module dependency analysis method and system, and relates to the technical field of communication. The analysis method of module dependency includes: obtaining all non-system modules in the software to be analyzed to construct a module group; obtaining the dependency relationship between all modules in the module group; establishing a pairwise relationship representing all modules in the module group The dependency matrix of the dependencies among them is used to determine whether there is a circular dependency between the non-system modules in the software to be analyzed according to the dependency matrix. The invention can determine whether there is a circular dependency between the binary target files as modules in the software to be analyzed.

Description

technical field [0001] The invention relates to the field of communication technologies, in particular to a method and system for analyzing module dependencies. Background technique [0002] Modular design is an important method of software design, and module design should follow the principle of high cohesion and low coupling. Cohesion is a measure of the degree of association between components within a module, and coupling is a measure of the interconnection between modules. The coupling relationship between modules refers to the dependency relationship between modules, including control relationship, reference relationship and data transfer relationship. [0003] The control of module dependencies is carried out in the software design stage, and the analysis of module dependencies is aimed at the post-evaluation and measurement of the products delivered by software development. When the design does not conform to the principle of high cohesion and low coupling, or the d...

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): G06F8/52G06F8/20
CPCG06F8/20G06F8/52
Inventor 曾颜
Owner FENGHUO COMM SCI & TECH CO LTD
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