| Author |
Program to list all c/c++ method/functions used
|
|
| Frank 2004-03-26, 11:46 am |
| Does any one one of any program out there that will look and list all
the functions/methods used in a program. Mostly looking for the
standard lib and system calls used. Not ones that we created
Thanks,
Frank
| |
| Måns Rullgård 2004-03-26, 11:46 am |
| Frank <fgeck@optonline.net> writes:
> Does any one one of any program out there that will look and list all
> the functions/methods used in a program. Mostly looking for the
> standard lib and system calls used. Not ones that we created
man nm
--
Måns Rullgård
mru@kth.se
| |
| Pascal Bourguignon 2004-03-26, 11:46 am |
| mru@kth.se (Måns Rullgård) writes:
> Frank <fgeck@optonline.net> writes:
>
>
> man nm
nm is fine to get a static view.
But perhaps you want a dynamic answer. Then you can profile your
program, to get the actual graph call, the functions and methods
actually used in a running program. See gprof and gcc for details.
--
__Pascal_Bourguignon__ http://www.informatimago.com/
There is no worse tyranny than to force a man to pay for what he doesn't
want merely because you think it would be good for him.--Robert Heinlein
http://www.theadvocates.org/
| |
| James Antill 2004-03-31, 6:34 am |
| On Fri, 26 Mar 2004 13:00:16 +0000, Frank wrote:
> Does any one one of any program out there that will look and list all the
> functions/methods used in a program. Mostly looking for the standard lib
> and system calls used. Not ones that we created
There are a few, depending on what you want. I've used xref quite a bit
(although that's commercial) etags can give simple lists and for more
advanced features there are...
http://students.ceid.upatras.gr/~sxanth/ncc/index.html
http://www.fokus.gmd.de/research/cc...vate/index.html
....both of which I've used a little bit, the former seemed nicer.
--
James Antill -- james@and.org
Need an efficient and powerful string library for C?
http://www.and.org/vstr/
|
|
|
|