Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Compaq fortran -Subroutine Call Map

Intel_C_Intel
Employee
1,537 Views
I am using Compaq fortran compiler and have not done much programing in fortran on the PC. Does anyone know of any utility that will map out a call sequence of subroutines, ie., which subroutines call which. There used to be a utility called SPAG ( by PRISM corp) on the mainframe that did this. I have a large old code and trying to decipher the logic and not sure how to do it in DVF.
0 Kudos
3 Replies
Steven_L_Intel1
Employee
1,537 Views
CVF has this feature, though it is not obvious and may be less useful than it first appears.

With your project open, select Tools..Source Browser. You will be prompted to do a rebuild with the settings changed - click OK. When the rebuild finishes, a Browse dialog box will open. Uncheck "Case sensitive".

Now type the name of a routine (or your main program or "main" if you don't have a PROGRAM statement) and select Call graph. Click OK. You'll see a call tree.

Unfortunately, there is no way to save this information! The source browser is a MS developer studio feature and we don't control that aspect of it.

Steve
0 Kudos
durisinm
Novice
1,537 Views
You can save the information by printing a hard copy of the screen, but that's of limited usefullness.

Another limitation is that you may not be able to fit the entire call tree into the display window if it's too long.

Mike
0 Kudos
Jugoslav_Dujic
Valued Contributor II
1,537 Views
Spag is available for Win32 from Polyhedron, but I think it's pretty expensive. Also check out Fortran Partner.

Jugoslav
0 Kudos
Reply