The invention provides a
software component analysis method oriented to C / C + + source codes, relates to the technical field of
software component analysis, and provides a flexible and efficient data collection mechanism, comprehensively constructs a TPL feature
library to improve the quality of the feature
library, preliminarily filters non-specific TPL functions in combination with a
directory structure, reduces
noise interference and improves the
software component analysis efficiency. The method comprises the following steps: firstly, classifying similar TPLs into the same family by using a clustering
algorithm, sharing a certain number of common functions in each family, and meanwhile, including a unique marker function of each TPL, further analyzing a
multiplexing relationship between the TPLs sharing the common functions, and removing the common functions which do not belong to a specific TPL range, thereby overcoming the defects related to the birth time of the functions; according to the method, the
multiplexing proportion of the target code at the function level and the file level is further comprehensively analyzed, the TPL
multiplexing situation of the code is accurately judged, the target code is divided into TPL modules, the dependency relationship between the modules is analyzed through include and extran statements, and therefore more accurate component recognition and dependency analysis are achieved.