David B. Serafini wrote:
<snip>
> The missing tool I ran into today was something to generate a
> listing of what routines are called by every routine in a program
> (known as a "who calls" list, among other names).
<snip>
> Does such a tool exist for F90 for any of IBM, Sun, Cray, NAG, SGI,
> or HP compilers?
Check out Sun's f90browse. It's an interactive program that
allows you to analyze source code (F90 and so also F77) for
usage of all (?) symbols. It *only* analyzes the source code,
so if you pass a procedure name as a dummy argument, you won't
see it in the call tree.
As for the call tree you can either examine the whole call tree
or local 'calls-called from' graph any procedure.
When I can I prefer to use this program. You also have the -Xlist
family of options in the compiler command line. It can produce
a variety of info, and AFAI remember also a list of called procedures
is given for each procedure analyzed. Unfortunately -Xlist core
dumps quite frequently on my sources 8^) The problem seems to be
curable by simply re-running the compiler starting where it last
refused to work...
Hope this helps,
----------------------------------------------------------------------
Artur Swietanowski mailto:[log in to unmask]
Institut fuer Statistik, Operations Research und Computerverfahren,
Universitaet Wien, Universitaetsstr. 5, A-1010 Wien, Austria
tel. +43 (1) 407 63 55 - 120 fax +43 (1) 406 41 59
----------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|