C静态函数调用关系分析工具cflow

文章出处:http://hi.baidu.com/timeless/blog/item/c4f8d7cacec0c54ff21fe745.html

 

函数调用关系的静态分析,即在编译前分析源代码获得函数调用关系,对于C语言来说,我看到网上搜到的很多都是介绍calltree的,但我下到calltree,里面的README写到:

“Calltree is similar to cflow...The disadvantage is that the C parser that is used by calltree is not completely correct and may not find all calls of a function.”

于是我选择了GNU的cflow,同样是静态分析,它具有更加强大的功能,支持对源代码进行预处理(展开宏)。

你可能感兴趣的:(c,语言,工具)