fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

INTRINSIC

Syntax:

%[NON-]INTRINSIC [:] <symbol> { <symbol> ... }

Function:

Determines whether or not the named intrinsic functions are to be recognised by fpt. The implications of recognising an intrinsic function are:

  1. Recognised intrinsics are evaluated in static expressions, and are used by fpt to determine the values of Fortran parameters. Unrecognised intrinsics are not.
  2. Recognised intrinsics do not require a data type declaration.
  3. Recognised intrinsics are controlled by the case specified by the UPPER CASE INTRINSICS and LOWER CASE INTERINSICS commands. Unrecognised intrinsics are controlled by the UPPER CASE SYMBOLS and LOWER CASE SYMBOLS commands.
  4. fpt reports an error if an intrinsic function name is used for a user-defined symbol. Errors are reported only if the intrinsic name belongs to the recognised set.

The named intrinsics must be known to fpt. fpt is able to recognise all Fortran 2018 and Fortran 77 intrinsics, and the additional intrinsics supported by DEC (Now HP) VMS, Lahey, Salford, Gould-SEL (Now Encore) Fortran and many other vendors.

the command ACCEPT INTRINSICS instructs fpt to accept groups of intrinsics.

Where to Use this Command

Operating system command line Yes
Configuration file, config.fsp Yes
Specification (fsp) files, *.fsp Yes
Interactively, to FPT> prompt No
Interactive command files No
Embedded in the Fortran code Yes

Default

All intrinsic functions known to fpt are recognised by default (Note that defaults may be changed in the configuration file).

Examples

In an fsp file:

% accept Fortran 77 intrinsics only ! Allow the degree forms of trig functions. % intrinsic sind cosd tand

See Also

ACCEPT INTRINSICS

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