FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


VOLATILE

Syntax:

!% VOLATILE [:] [:] <symbol> [ , <symbol> ... ]

!% VOLATILE [:] [:] /<symbol>/

Function:

Specifies that the named symbol or COMMON block is volatile. FPT uses this information in the usage check (please see CHECK USAGE). The named objects are assumed to be both read and written to.

Symbol or COMMON block names which contain exotic characters such as '%', ':' or '#' (which are all legal on some systems) must be written as quoted strings. If COMMON block names are written in this way the '/' characters must lie outside the quotation marks.

The %VOLATILE command must be written in code within the scope of declaration of the variable or COMMON block. It is introduced by a comment delimiter in column 1 and the character % in column 2.

Where to use this command:

Operating system command line

No


Configuration file, config.fsp

No


Specification (FSP) files, *.fsp

No


Interactively, to FPT> prompt:

No


Interactive command files

No


Embedded in the Fortran code

Yes


Default:

Non-volatile.

Example:

INTEGER*4 I1553_BUFF(0:255) !% VOLATILE :: I1553_BUFF

See also:

CHECK USAGE


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