FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


SHOW SYMBOL

Syntax:

SHOW SYMBOL <symbol_name>

SHOW SYMBOL <sub-program_name> \ <symbol_name>

SHOW SYMBOL / <COMMON_name> / <symbol_name>

Function:

SHOW SYMBOL displays the attributes of the named symbol. If two or more different symbols have the same name, the SHOW SYMBOL command displays the attributes of all of the matching symbols.

The named symbol within a particular sub-program is specified by the command:

FPT> SHOW SYMBOL <sub-program_name> \ <symbol_name>

The named symbol within a COMMON block is specified by the command:

FPT> SHOW SYMBOL / <COMMON_name> / <symbol_name>

Where to use this command:

Operating system command line

No


Configuration file, config.fsp

No


Specification (FSP) files, *.fsp

No


Interactively, to FPT> prompt:

Yes


Interactive command files

Yes


Embedded in the Fortran code

No


Example:

There are two occurrences of symbols named R in the program examined:

FPT> show symbol r
 
Name       Sub-prog/Struct Use/COMMON  Address  Type    Size   Value/Bounds
----       --------------- ----------  -------  ----    ----   ------------
R           ATMOS          Local                REAL    *4  df
 
R           WCOORD         Local                RANGE   *16

The type of R is shown as RANGE. We examine the structure RANGE:

FPT> show sym range
 
Name       Sub-prog/Struct Use/COMMON  Address  Type    Size   Value/Bounds
----       --------------- ----------  -------  ----    ----   ------------
RANGE       WCOORD         Structure            RECORD  *16
                   Field(s):
                       TOP                 0    REAL    *4
                       FLOOR               4    REAL    *4
                       AT_TOP_F            8    LOGICAL *4
                       AT_FLOOR_F         12    LOGICAL *4


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