FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


DEFAULT SIZE

Syntax:

DEFAULT { LOGICAL | INTEGER | REAL | DOUBLE | COMPLEX } SIZE [:] <integer>

Function:

Specifies the default data size for logical, integer, real, double precision or complex objects. The default size is used when no explicit data size declaration has been made.

These commands are made on the command line or in specification files. They cannot be made after FPT has read and analysed the input code.

If it is not otherwise specified, the default logical size is assumed to be the same as the integer size, and the default double precision size is assumed to be twice the real size.

Data sizes may be changed systematically throughout a program by the commands CHANGE LOGICAL SIZE = n, CHANGE INTEGER SIZE = n etc.

The code may be modified to specify the default data sizes explicitly by the command SPECIFY NUMERIC SIZES. The *n size specifications may be stripped from the code by the command REMOVE NUMERIC SIZES.

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

No


Defaults:

DEFAULT LOGICAL SIZE = 4

DEFAULT INTEGER SIZE = 4

DEFAULT REAL SIZE = 4

DEFAULT DOUBLE SIZE = 8

DEFAULT COMPLEX SIZE = 8

(Note that defaults may be changed in the configuration file)

See also:

CHANGE SIZE

REMOVE NUMERIC SIZES

SPECIFY NUMERIC SIZES


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