Does similar feature is supported by GCC??

Ciaran O'Riordan ciaran_o_riordan@hotmail.com
Tue Nov 5 03:59:00 GMT 2002


>Hi All,

hi satya.

>.bsc file is a comprehensive database that contains
>information about a
>program's symbols, including symbol references,
>function calltrees, and
>definition tables. Is there any similar feature
>present in GCC?

hmmm.  I can't think of anything but along a similar
vein you have:

GProf: the gnu profiler.  This will tell you how
much execution time spent in each function and how
many times each function is called.  To use gprof
you must add '-gprof -fprofile-arcs' to you
compilation command.

GCov: this tool will show you how many times each
line of your program is executed.  Can't remember
off the top of my head what switches you need to
add to your compilation command.

tags, ctags, etags:  These will generate a list
of the symbols in your code files.  You can then
use them to jump the the file and line that a
symbol appears on if you use Vi or Emacs.

I can't think of any tool to generate calltrees,
the only similar thing I can think of would be
to get a stack trace from GDB.

Was any of this helpful?


_________________________________________________________________
Surf the Web without missing calls! Get MSN Broadband. 
http://resourcecenter.msn.com/access/plans/freeactivation.asp



More information about the Gcc-help mailing list