Berkeley CSUA MOTD:Entry 36927
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/25 [General] UID:1000 Activity:popular
5/25    

2005/3/28-30 [Computer/SW/Languages/C_Cplusplus] UID:36927 Activity:nil
3/28    Is there any tool that can take a bunch of cpp and .h files and draw
        up an inheritance tree and a calling tree, like "a is called by b,
        b is called by c1 and c2, c1 is called by d, d and c2 are called by
        main"? and "new Foo() has as members the following classes, which each
        interit from ... and have as members these classes..."
        \_ Egypt (http://www.gson.org/egypt builds call graphs for C. I don't
           know if it works for C++; it'll probably output a call graph with
           mangled names or something. It doesn't do inheritance graphs. -gm
Cache (361 bytes)
www.gson.org/egypt -> www.gson.org/egypt/
egypt - a tool for making call graphs Egypt is a devilishly simple tool for creating call graphs of C programs. Instead, it lea ves the source code analysis to GCC and the graph layout to Graphviz, bo th of which better at their respective jobs than egypt itself could ever hope to be. Egypt is just a small Perl script that glues these existing tools together.