FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference 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 of 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. if it is read by any sub-program which is outside 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

Without arguments

Configuration file, config.fsp

Yes

Without arguments

Specification (FSP) files, *.fsp

Yes

Without arguments

Interactively, to FPT> prompt:

Yes


Interactive command files

Yes


Embedded in the Fortran code

Yes

Without arguments

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 2014 Software Validation Ltd. All rights reserved.