FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


DELETE UNUSED SUB-PROGRAMS

Syntax:

[DO NOT] DELETE UNUSED SUB-PROGRAMS

KEEP UNUSED SUB-PROGRAMS

Function:

The commands EXPAND INLINE and INLINE instruct FPT to expand sub-programs inline.

If all of the calls to a sub-program are expanded inline, the sub-program code may no longer be required to build the program. Unused sub-programs are deleted from the code written by FPT by the command DELETE UNUSED SUB-PROGRAMS. They are not, of course, deleted from the input files.

The command KEEP UNUSED SUB-PROGRAMS instructs FPT to retain the code of all sub-programs, even though there may be no surviving calls to them.

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:

KEEP UNUSED SUB-PROGRAMS

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

Example:

$ fpt "%expand inline" "%delete unused sub-programs" heli.fsp

See also:

EXPAND INLINE

INLINE


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