fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

SHOW SUB-PROGRAM INTERFACES

Syntax:

SHOW SUB-PROGRAM INTERFACES [ : <sub-program> ] DO NOT SHOW SUB-PROGRAM INTERFACES

Function:

The sub-program declaration statement is printed, followed by its data type if it is a function, followed by a list of the arguments (if any) and their attributes.

The COMMON blocks and modules referenced by the sub-program are then listed. For each COMMON block or module, fpt lists the variables which are used to import data to the sub-program and to export data from it. A variable is considered to import data if both:

  1. it is read by the sub-program, or by any other sub-program which is called directly or indirectly from it;
  2. it is written to by any sub-program which is not in the call tree below the current sub-program.

A variable is considered to export data from the sub-program if both:

  1. it is written to by the current sub-program or by any sub-program called directly or indirectly by it;
  2. it is read by any sub-program which is not below the call-tree of the current sub-program.

Note that by taking the call-tree of the sub-program into account, fpt reports the entire data interface of the sub-program.

If no sub-program name is specified in the command, fpt reports the interfaces of all sub-programs.

Where to Use this Command

Operating system command line Yes
Configuration file, config.fsp No
Specification (fsp) files, *.fsp Yes
Interactively, to FPT> prompt Yes
Interactive command files Yes
Embedded in the Fortran code No

Example:

FPT> show sub-prog interfaces: paths Line 1, File j:\fpt\fpttests\paths.f SUBROUTINE PATHS(NSTEP,DT) Arguments ========= NSTEP PATHS Formal Input Argument INTEGER *4 df DT PATHS Formal Input Argument REAL *4 df Shared Memory Interfaces for: PATHS =================================== COMMON /PATCOM/ is shared Objects imported into PATHS --------------------------- Name Address Size ---- ------- ---- V1 24000 4 V2 24004 4 C1 24008 4 C2 24012 4 BEAR2 24020 4 X1 24024 4 Y1 24028 4 Z1 24032 4 X2 24036 4 Y2 24040 4 Z2 24044 4 Total size 44 Objects exported from PATHS --------------------------- Name Address Size ---- ------- ---- CPATH 0 12000 MPATH 12000 12000 Total size 24000 Grand total memory imported: 44 Grand total memory exported: 24000 ------------------------------------------------------------------------------

See Also

SHOW CALL TREE

SHOW SUB-PROGRAMS

Copyright ©1995 to 2025 Software Validation Ltd. All rights reserved.