Topic: Cross-reference listing

Does there exist, somewhere, a program that will produce a cross-reference listing for a FORTRAN program, showing ideally:

Call tree (including procedure and line numbers where a routine is called from)

List of unused variables in a procedure

List of variables that may have been used before being initialized

Re: Cross-reference listing

Simply Fortran doesn't ship any tools capable of producing a call tree. However, the compiler can fulfill your other two requests by enabling some warning flags.

To list unused variables, including parameters, in a procedure:

-Wunused

To list possible usage of uninitialized variables:

-Wuninitialized

Both can be added to the list of Fortran flags under "Compiler Flags" in the Project Options window.

Jeff Armstrong
Approximatrix, LLC

Re: Cross-reference listing

Thanks Jeff. I guess it wouldn't be too hard to write a program to produce a call tree, but I was hoping not to have to reinvent the wheel. Surely some third party software that does this must exist.