fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

BIT PATTERN

Syntax:

!% BIT PATTERN [:] [:] <symbol> !% BIT PATTERN [:] [:] <string>

Function:

Specifies that the named variable is a foreign data type. fpt uses this information in constructing code to capture the variable when INSERT RECORD / REPLAY is specified. The named objects are handled as arrays of type INTEGER*1 or BYTE.

Names which contain exotic characters such as '%', ':' or '#' (which are all legal on some systems) must be written as quoted strings.

The % BIT PATTERN command must be written in code within the scope of declaration of the variable.

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

Variables are not treated as bit patterns by default.

Examples

SUBROUTINE GET_COLORIMETER(VAL,IERR) REAL*8 VAL ! Real BCD number INTEGER*4 IERR ! Valid when 0 !% BIT PATTERN :: VAL ! Not an IEEE real

See Also:

INSERT RECORD / REPLAY

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