Reputation: 11369
looking for a code analysis tool for some legacy c/c++ code on unix specifically to identify dependencies to
Upvotes: 7
Views: 1064
Reputation: 4339
There is CodeViz: A CallGraph Visualizer. It uses GraphViz to generate nice big graphics.
Upvotes: 2
Reputation: 9725
You can use the LLVM infrastructure for some code analysis (e.g., building dependency graphs, searching for certain patterns, etc.), alongside with Clang or llvm-gcc.
Upvotes: 1
Reputation: 5715
I have used successfully Understand in the past. It's not free but it comes with a trial period so you could make an opinion about it.
Upvotes: 1
Reputation: 5297
As far as function trees, etc. doxygen
comes to mind. See Ben Voigt's comment below.
If you're just trying to generally debug, in Linux gdb
and valgrind
are invaluable for figuring out what's going on at a low level. In Windows Visual Studio
offers a lot of similar debugging functionality.
Your question is a bit vague. Can you tell us a bit more about the code and your assignment?
Upvotes: 0
Reputation: 20282
Doxygen
is probably what you're looking for. It can provide cross-reference, call graphs and dependency trees without programmer's markups, that seems to be what you need.
Upvotes: 7