On Tue, 21 Dec 1999, Thomas Ward wrote:

> > Emacs, for example, comes with an app called etags that
> > generates a database emacs can then use to jump
> > directly to the place where a function is defined...
> 
> Thanks for the 2 responses I got, but I'm afraid you are
> answering the wrong question. What I want is not a nifty
> editor function. I want something that will read in my
> source code and produce something like this:
[Snip!]
> In other words, a cross reference of procedure calls.

You might consider taking a look at cxref - it's been a while since I used
it, but it produces a lot of different documentation from C source files, 
including function usage. I couldn't remember the URL, but a swift search
via Google gave this:

http://www.gedanken.demon.co.uk/cxref

Seems to produce a lot more ifnormation, and in different formats, than
the version I used to use :-)

> Another "nice-to-have" that most compilers generate is a
> list of variables used. That's a good way to ensure that
> you don't have any variables that are not used.

As already mentioned in another reply, the -Wall option (which I *always* 
use out of habit) should report stuff like this.
 
> I can't find an option in GCC to do either of these two
> things, both of which are commonly provided by compilers :-(

Must confess I've never used a compiler on any platform, or for any
language, that generates lists of function calls, dependencies, etc. I
guess I've been spoilt :-)


Hope this helps...


Regards,

John


Reply via email to