On 04/20/2010 11:04 AM, AJ ONeal wrote: > Let's say you have some undocumented code that's been handed down from > generation to generation. > > Is there some sort of tool that can create a map which shows > relationships between functions and variables? > I'd like to be able to query for a particular function or variable > name and find what reads or mutates it.
To get a feel for which functions are actually *called* at runtime, I recommend valgrind --tool=callgrind. That will show you a call graph of functions that are called, and how often, and how much time they take to execute. It has a few niceties for displaying that information too. If this is for your embedded system, it may be *very* slow to run. :) --Dave -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list
