Re: Extracting call graphs (Re: Show functions in obj files?) (Niels Ull Jacobsen)
23 Sep 1996 21:20:06 -0400

          From comp.compilers

Related articles
Show functions in obj files? (Dietmar Schroeder) (1996-08-30)
Re: Show functions in obj files? (1996-09-15)
Extracting call graphs (Re: Show functions in obj files?) (Eamonn McManus) (1996-09-22)
Re: Extracting call graphs (Re: Show functions in obj files?) (1996-09-23)
| List of all articles for this month |

From: (Niels Ull Jacobsen)
Newsgroups: comp.compilers
Date: 23 Sep 1996 21:20:06 -0400
Organization: Department of Computer Science, U of Copenhagen
References: 96-08-101 96-09-072
Keywords: tools

Dietmar Schroeder <> wrote:
>we are looking for a tool that could display all functions used in a
>c-program by examinating the gcc compiled obj files (inc. debug info). (Ronald F. Guilmette) wrote:
> On the other hand, if you want a _call graph_ of your C code (which I suspect
> that you do, given that fact that you said that you want a list of functions
> that are ``used'') then there ought to be _some_ tool out there somewhere
> which will do that for you, ...

I have written a small awk-script which will take the output from
cxref and generate and xvcg graph description file. It's not very
pretty, but if anyone is interested, I can mail it to them.

I weren't very succesful with it, however. For my program, the call
graph got very large and complex and not very useful. I could probably
have hand-edited it a bit to remove the most commonly called utility
functions to get a nicer picture, but I decided it wasn't worth the
      Niels Ull Jacobsen, Dep. of CS, U of Copenhagen (
      Roenne Alle 3, 2860 Soeborg, Denmark, tel. +45 39 66 39 86

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.