Unix Programming - programming tools to list functions/variables

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > April 2006 > programming tools to list functions/variables





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author programming tools to list functions/variables
vr

2006-04-27, 7:56 am

hi all,
is there any Open Source tool that i can use to list functions and
variables in a given source code tree (C, C++). there are times when i
want to know what functions are available and combined with cscope it
helps with better understanding of a project i learned.
i'm also interested on what tools u guys have been using all along
(other than emacs, vi, sed, etc) and in what way it helped. (btw, sorry
if it such a newbie question

thanks for any help in advance.

Diomidis Spinellis

2006-04-27, 7:56 am

vr wrote:
> is there any Open Source tool that i can use to list functions and
> variables in a given source code tree (C, C++). there are times when i
> want to know what functions are available and combined with cscope it
> helps with better understanding of a project i learned.


CScope already gives you the information you want. If you want a tool
with a lower overhead, running a version of ctags on a collection of
source code files will create a tags file listing every global variable,
function and structure definition. You can also run nm on the compiled
object files to get similar information.

--
Diomidis Spinellis
Code Quality: The Open Source Perspective (Addison-Wesley 2006)
http://www.spinellis.gr/codequality?cup
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com