[comp.lang.c] Wanted: a program to build a call graph for C

len@array.UUCP (Leonard Vanek) (01/22/88)

Does anybody have a public domain or "copylefted" program or
awk script that constructs some sort of encoding (graph, nested
listing, etc.) of the calling structure of either a single C
source file or, preferably, a collection of such files.

I know that this information is included (obscured by a much
higher volume of ordinary cross reference information) in the
output of "cxref", which is included with some Unix systems.
However, our Sun seems to lack cxref even though it has pxref!

Failing the existence of such a tool, does anybody have a yacc
grammar for C that I can use to build my own call graph constructer?

Thanks.

--------------------------------------------------------------------
Leonard Vanek                  UUCP: ... utzoo!dciem!array!len
Array Systems Computing Inc.     or  ... {utzoo,watmath}!lsuc!array!len
5000 Dufferin St. Suite 200    INTERNET: len@array.UUCP
Downsview, Ont. M3H 5T5        Phone: (416) 736-0900
Canada                         FAX:   (416) 736-4715