|tool for listing function callers email@example.com (Antoine Trux) (1999-06-06)|
|Re: tool for listing function callers firstname.lastname@example.org (Bill A.) (1999-06-12)|
|Re: tool for listing function callers email@example.com (Albert Pomortsev) (1999-06-19)|
|From:||Albert Pomortsev <firstname.lastname@example.org>|
|Date:||19 Jun 1999 17:51:01 -0400|
Antoine Trux wrote:
> I would need a tool that does the following:
> - Input:
> 1) A C++ program "P" (e.g., a set of C++ source files that make up a valid
> C++ program).
> 2) A function, "F", in that program.
> - Output:
> The list of callers of F, callers of the callers, etc., recursively.
> One could build such a tool with a C++ parser, but is there something ready
Try Sun Workshop 5.0 Source Browser. It allows to inspect both
program's call graph and class hierarchy. Of course, it shows only
what can be determined at compile time. If you need to investigate
true runtime behavior, I'd recommend profiling. You'll probably need
to reformat profiling output in some way to filter needed functions
and trace the actual call graph but it should not be very difficult, I
Return to the
Search the comp.compilers archives again.