cunixcallstack

Establish call tree for C code


I have a large code written in C, but I did not write all of it myself. I wish to create an overview of the call structure in the code for reference. That is: I wish to know what (non-standard) functions are called by the different functions in the code, and thus create a hierarchy or a tree of the different functions. Are there any free, Unix compatible programs (that means no Visual Studio, but a Vim plugin or such would be neat) that can do this, or will I have to write something that can do this myself?


Solution

  • For an overview of available tools see http://en.wikipedia.org/wiki/Call_graph

    There is a Vim plugin C Call-Tree Explorer called CCTree http://www.vim.org/scripts/script.php?script_id=2368