Advertisement

Name of this utility?

Started by March 08, 2002 01:19 PM
4 comments, last by Sean99 22 years, 10 months ago
Isn''t there a unix utility that inspects your source code and builds a function-call hierarchy list ( main() calls func1(), which calls func2(), etc..)? I never used it but I think I''ve heard of it. Can anybody tell me what it is? Sean
"we need common-sense judges who understand that our rights were derived from God. And those are the kind of judges I intend to put on the bench." - GW Bush"no religious Test shall ever be required as a Qualification to any Office or public Trust under the United States." - Article VI of the US Constitution.
If you mean it creates documentation from source, you probably mean doxygen.

[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!
Advertisement
A profiler : gprof ?
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
No, I''m not looking for a profiler. I want something that just takes a look at the source and produces something like:

main()
----func1()
--------func3()
------------func4()
----func2()
--------func3()
------------func4()

which tells me that:
main() calls func1() and func2()
func1() calls func3()
func2() calls func3()
func3() calls func4()

I''m still looking over the doxygen features, but so far it doesn''t look like it does this. I''m not interested in the ''documentation generation through formatted comments'' which seems to be the main feature of doxygen. I did find a link there to a program called cxref which does exactly what I''m looking for, but it doesn''t support c++. Thanks anyway,

Sean
"we need common-sense judges who understand that our rights were derived from God. And those are the kind of judges I intend to put on the bench." - GW Bush"no religious Test shall ever be required as a Qualification to any Office or public Trust under the United States." - Article VI of the US Constitution.
cxref appears to do exactly what doxygen does.
quote:

C Cross Referencing & Documenting tool


Cxref is a program that will produce documentation (in LaTeX, HTML, RTF or SGML) including cross-references from C program source code.

quote:
Doxygen is a documentation system for C++, Java, IDL (Corba, Microsoft and KDE-DCOP flavors) and C.

Call/sequence graphs are also on the doxygen todo list:
quote: 54 Add call graphs, or sequence graphs for each member to visualize the internal structure and external dependencies. (not implemented).

Perhaps you could email the author to show some support and get info on an exstimated timeframe for the feature''s implementation.

[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!
Try cscope if you''re looking for a powerful tool to analyze code.
-------------------------------------------------------------LGPL 3D engine - http://www.sourceforge.net/projects/realityengine

This topic is closed to new replies.

Advertisement