Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C/C++ call-graph utility for Windows platform [closed]

Tags:

I have a large 95% C, 5% C++ Win32 code base that I am trying to grok.

What modern tools are available for generating call-graph diagrams for C or C++ projects?

like image 629
Jeff Leonard Avatar asked Aug 07 '09 17:08

Jeff Leonard


People also ask

Which tool gives class diagrams and call graphs?

The cflow utility analyzes a collection of source files written in C programming language and outputs a graph charting dependencies between various functions. The program is able to produce two kind of graphs: direct and reverse.

How do you extract a call from a graph?

On the bottom right, select the "Call graph" tab. This shows an interactive call graph that correlates to performance metrics in other windows as you click the functions. To export the graph, right click it and select "Export Graph".

Which of the tool among these can be used to generate a graphical call graph profile for an application?

Callgrind is a profiling tool that records the call history among functions in a program's run as a call-graph. By default, the collected data consists of the number of instructions executed, their relationship to source lines, the caller/callee relationship between functions, and the numbers of such calls.

What is function call graph?

Function call graphs, or call trees, are a standard tool often found in reverse engineering tools, code browsers, IDEs, and even file editors. They provide fundamental information about the control flow dependencies for the functions you're examining in your tool.


1 Answers

Have you tried doxygen and codeviz ?

Doxygen is normally used as a documentation tool, but it can generate call graphs for you with the CALL_GRAPH/CALLER_GRAPH options turned on.

Wikipedia lists a bunch of other options that you can try.

like image 131
nagul Avatar answered Sep 28 '22 08:09

nagul