Need script or tool to create function call lists 
Author Message
 Need script or tool to create function call lists

Anybody know of a perl script (or other unix tool) to analyze a bunch of
C/C++ source code files to create function call diagrams or lists of
function calls automatically?  Something like this (where functionFoo is
called by functionABC, which is called by funcXYZ, and so on)...

  main()......................foomain.c,              line xxx
    funcXYZ().................sourcefile1.cpp,        line xxx
      functionABC()...........sourcefile9.c,          line xxx
         functionFoo()........sourcefileFoo.c         line xxx

  main()......................foomain.c               line xxx
    functBozo()...............foomain.c               line xxx
         functionFoo()........sourcefileFoo.c         line xxx

  functZounds()...............sourcefileGamma.cp      line xxx
     functionFoo()............sourcefileFoo.c         line xxx

 or the reverse order (where the called function is first, followed by
calling functions) ...

 functionFoo()   foomain.c, xxx
   functBozo()   foomain.c, xxx

Actual format is not particularly important.



Sun, 11 Apr 2004 23:16:41 GMT  
 Need script or tool to create function call lists

Quote:

> Anybody know of a perl script (or other unix tool) to analyze a bunch
> of C/C++ source code files to create function call diagrams or lists
> of function calls automatically?  Something like this (where
> functionFoo is called by functionABC, which is called by funcXYZ, and
> so on)...

perldoc B::Xref

--
Klein bottle for rent - inquire within.



Tue, 13 Apr 2004 08:14:50 GMT  
 Need script or tool to create function call lists
Hi,

Quote:
> > Anybody know of a perl script (or other unix tool) to analyze a bunch
> > of C/C++ source code files to create function call diagrams or lists
      ^^^^^^^
> perldoc B::Xref

Says:
"The B::Xref module is used to generate a cross reference listing of
all definitions and uses of variables, subroutines and formats in a
Perl program. It is implemented as a backend for the Perl compiler."

But Larry wants to analyze C/C++ - thus a tool that analyzes perl
wont help him much, will it?



Tue, 13 Apr 2004 08:52:50 GMT  
 Need script or tool to create function call lists
Larry,

I think this does what you ask except it creates .html files.
http://www.zib.de/Visual/software/doc++/index.html

Larry S.


Quote:
> Anybody know of a perl script (or other unix tool) to analyze a bunch of
> C/C++ source code files to create function call diagrams or lists of
> function calls automatically?  Something like this (where functionFoo is
> called by functionABC, which is called by funcXYZ, and so on)...

>   main()......................foomain.c,              line xxx
>     funcXYZ().................sourcefile1.cpp,        line xxx
>       functionABC()...........sourcefile9.c,          line xxx
>          functionFoo()........sourcefileFoo.c         line xxx

>   main()......................foomain.c               line xxx
>     functBozo()...............foomain.c               line xxx
>          functionFoo()........sourcefileFoo.c         line xxx

>   functZounds()...............sourcefileGamma.cp      line xxx
>      functionFoo()............sourcefileFoo.c         line xxx

>  or the reverse order (where the called function is first, followed by
> calling functions) ...

>  functionFoo()   foomain.c, xxx
>    functBozo()   foomain.c, xxx

> Actual format is not particularly important.



Sun, 18 Apr 2004 18:52:49 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Challenge: create function to find duplicate entries in list

2. Want to analyze C program(s) and create a function call-tree

3. Can't call a script from html created by another script

4. Want to analyze C program(s) and create a function call-tree

5. scalar vs. list context in function calling arguments

6. Perl needs a dyadic list laminate builtin function

7. Utility to list shell script function tree

8. calling of C function from a perl script

9. Call C functions directly from a script..

10. calling functions from another perl script

11. How to create a list-of-lists dynamically?

12. calling a Win32 API function from a Perl script

 

 
Powered by phpBB® Forum Software