This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Does similar feature is supported by GCC??


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]