C/C++ call-graph utility for Windows platform

18,145

Solution 1

Have you tried SourceInsight's call graph feature?

Solution 2

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.

Solution 3

Good old cflow works fine for C. See here for an implementation.

Solution 4

Any decent static analysis tool should have this functionality (as well as all the other stuff that such tools do). Wikipedia has a good list of such tools.

Another group of tools that may be worth checking out are coverage tools. The call graph generated by the coverage tool will contain only the calls that actually take place during a run of the program. Initially this may be more helpful to you than a full call graph. I'm unable to make any suggestions on this for Windows, but for linux projects I highly recommend gcov and lcov.

Share:
18,145
Jeff Leonard
Author by

Jeff Leonard

I am a professional software developer who ran a consulting and product development company for many years before closing up shop in 2017 and returning to school for an MS in Information Management from the University of Washington Information School (graduated 2018). As a developer, I have a passion for solving problems using Python, R, C/C++, C#, Java, .NET, HTML, JavaScript, as appropriate. As an information manager and data scientist, I want to use the most convenient tools available (Tableau, Power BI, Excel, etc.) to grok data and transform it into a productive asset. But what I find most rewarding are the opportunities to help my associates and coworkers maximize their potential through being a mentor, coach and leader.

Updated on June 13, 2022

Comments

  • Jeff Leonard
    Jeff Leonard about 2 years

    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?