fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |



SHOW SYMBOL <symbol_specification> [ , <symbol_specification> ... ]

where <symbol_specification> may be:

<target> where all symbols with matching names will be shown
[ <class> : ] <target> where the symbols of only the named class will be shown
[ <class> : ] ... [ <grand-parent> % ] <parent> % <target> where the target is a child of the specified parent-child chain
/<target>/ where the target is the named COMMON block symbol
//<target> where the target is a variable in the default COMMON block
/<COMMON_name>/<target> where the target is a variable in the named COMMON block

The <class> specification specifies a top-level sub-program. It is the keyword PROGRAM, MODULE, SUBROUTINE or FUNCTION.

Please see specifying a symbol for a more detailed description.


SHOW SYMBOL displays the attributes of the named symbols. If two or more different symbols match the specification, the SHOW SYMBOL command displays the attributes of all of the matching symbols.

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


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

FPT> show symbol r Name Scope Use/COMMON Address Type Size Value/Bounds ---- ----- ---------- ------- ---- ---- ------------ R ATMOS Local REAL *4 df R WCOORD Local RANGE *16 2 matching symbols

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

FPT> show sym wcoord%range Name Scope 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 1 matching symbol

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