FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


CHANGE INTRINSIC

Syntax:

CHANGE INTRINSIC <intrinsic> TO <intrinsic>

DO NOT CHANGE INTRINSICS

Function:

The intrinsic specified is systematically replaced. The replacement affects only the name of the intrinsic function. The arguments are not changed.

This command is used, for example, to rename the intrinsic statements used in code for old Encore (Gould-SEL) systems, where the trigonometric functions are in degrees and not radians.

Where to use this command:

Operating system command line

Yes


Configuration file, config.fsp

Yes


Specification (FSP) files, *.fsp

Yes


Interactively, to FPT> prompt:

Yes


Interactive command files

Yes


Embedded in the Fortran code

Yes


Default:

Intrinsics not changed by default (Note that defaults may be changed in the configuration file).

Example:

In an FSP file, for porting from an Encore 32-77 with intrinsics in degrees of arc:

%change intrinsic sin to sind
%change intrinsic cos to cosd
%change itrinsic tan to tand
%change intrinsic atan to atand


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