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

A method and a system for analyzing module dependencies

A technology of dependency relationship and analysis method, which is applied in the analysis method and system field of module dependency relationship, can solve the problems of not being able to target static libraries, and cannot analyze the circular dependency relationship of binary target files, etc., to achieve fast module dependency relationship, simple calculation process, quick results

Active Publication Date: 2018-12-25
FENGHUO COMM SCI & TECH CO LTD
View PDF9 Cites 6 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 a system for analyzing module dependencies
  • A method and a system for analyzing module dependencies
  • A method and a 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 an analysis method and a system for module dependency relations, which relates to the technical field of communication. The module dependency analysis method comprises the following steps: all non-system class modules in the software to be analyzed are acquired to construct a module group; the dependencies of all modules in the module group are obtained; a dependency matrixis established to represent the dependencies between all the modules in the module group, and the existence of cyclic dependencies between the non-system modules in the software to be analyzed is judged according to the dependency matrix. The invention can determine whether there is a circular dependency relationship between binary object 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 Applications(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