FTN


FTN


Compiles a Compatibility Mode HP FORTRAN 77/V program. HP
FORTRAN 77/V is not part of the 900 Series HP 3000 Computer
System Fundamental Operating Software and must be purchased
separately. The Native Mode equivalent of this command is FTNXL. (CM)

SYNTAX

     FTN [textfile][,[uslfile][,[listfile]]]
[;INFO=quotedstring]

PARAMETERS

textfile            Actual file designator of the input file from which
the source program is read. This can be any ASCII
input file. Formal file designator is FTNTEXT.
Default is $STDIN.

uslfile Actual file designator of the USL file to which the
object code is stored, which can be any binary
output file with a file code of USL or 1024. Its
formal file designator is FTNUSL. If the uslfile
parameter is omitted, the object code is saved to
the temporary file $OLDPASS. If entered, this
parameter indicates that the USL file was created in
one of four ways

o By using the MPE/iX SAVE command to save the
default USL file $OLDPASS, created during a
previous compilation.

o By building the USL with the MPE V/E Segmenter -
BUILDUSL command. Refer to the MPE Segmenter
Reference Manual (30000-90011).

o By creating a new USL file specifying the MPE/iX
BUILD command and specifying a file code of USL
or 1024.

o By specifying a nonexistent uslfile parameter,
thereby creating a permanent file of the correct
size and type.

listfile Actual file designator of the file to which the
program listing is written. This can be any ASCII
output file. Formal file designator is FTNLIST.
Default is $STDLIST.

NOTE

The formal file designators used in this command (FTNTEXT, FTNUSL, and
FTNLIST) cannot be backreferenced as actual file designators in the
command parameter list. For further information, refer to the "IMPLICIT
FILE COMMANDS FOR SUBSYSTEMS" discussion of the MPE/iX FILE command.

quotedstring A sequence of characters between two single
quotation marks (apostrophes) or between two double
quotation marks. You may use the delimiter as part
of the string so long as the delimiter appears
twice. Any occurrence of two single quotation marks
in a row, or two double quotes in a row, is
considered part of the string, and, therefore, not
the terminating delimiter.

INFO=quotedstring is used to pass initial compiler
options to a program.

OPERATION

     The FTN command compiles a Compatibility Mode HP FORTRAN
77/V program and stores the object code in a User Subprogram
Library (USL) file on disk. If textfile is not specified,
MPE/iX expects the source program to be entered from your
standard input device. If you do not specify listfile, MPE
XL sends the program listing to your standard list device and
identifies it by the formal file designator, FTNLIST.

If you create the USL prior to compilation, you must specify
a file code of USL or 1024. If you omit the uslfile
parameter, the object code is saved in the temporary file
domain as $OLDPASS. To keep it as a permanent file, you must
save $OLDPASS under another name.

This command may be issued from a session, job, or program. It may
not be used in BREAK. Pressing [Break] suspends the execution of
this command. Entering RESUME continues the execution.

EXAMPLE(S)

     The following example compiles an HP FORTRAN 77/V program
entered from your standard input device and stores the
object program in the USL file $OLDPASS. The listing is
then sent to your standard list device:

FTN

The next example compiles an HP FORTRAN 77 program contained
in the disk file FORTSRC, and stores the object program in
the USL file FORTOBJ. The program listing is stored in the
disk file LISTFILE.

BUILD FORTOBJ;CODE=USL

FTN FORTSRC,FORTOBJ,LISTFILE

ADDITIONAL INFORMATION

Commands:   FTNGO, FTNPREP

Manuals :   HP FORTRAN 77/iX Reference (31501-90010)
            MPE Segmenter Reference Manual (32650-60026)