FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


HIDE NAMES

Syntax:

HIDE NAMES [ [:] <integer> ]

Function:

Renders code unreadable and unmaintainable, but preserves its integrity as compilable and functional Fortran.

HIDE NAMES : 1

- removes all comments from the code.

HIDE NAMES : 2

- removes all comments and replaces all names which are local to the compilation of the sub-programs by meaningless 6 character alphanumeric strings. Sub-program names and COMMON block names are unchanged, so that the code may still be linked against external sub-programs and libraries.

HIDE NAMES : 3

- removes all comments and replaces all user-defined names, including sub-program and COMMON block names by meaningless strings. The code can no longer be linked against external sub-programs or libraries. Intrinsic function names are not changed,

HIDE NAMES

- without an argument is equivalent to HIDE NAMES : 2

HIDE NAMES : 0

- cancels any previous HIDE NAMES command.

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:

User-defined names are not changed.

HIDE NAMES without an argument is equivalent to HIDE NAMES : 2

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

Example:

Original code of SWAP.FOR:

SUBROUTINE SWAP(A,B) ! Subroutine to interchange the real arguments T=A A=B B=T RETURN END

Code generated by the command:

$ fpt swap %hide_names

SUBROUTINE SWAP(A00594,A00595) A00591=A00594 A00594=A00595 A00595=A00591 RETURN END


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