HP 3000 Manuals

The FTNXLLK Command [ HP FORTRAN 77/iX Reference ] MPE/iX 5.0 Documentation


HP FORTRAN 77/iX Reference

The FTNXLLK Command 

The MPE/iX command FTNXLLK compiles a FORTRAN 77 program into an object
file and then links this object file into a specified program file.

Syntax 

FTNXLLK [textfile] [, [progfile] [, [listfile]]] [{; INFO=} " text "]
                                                 [{,      }         ]

-----------------------------------------------------------------------------------------------
|                   |                                    |                                    |
|       Item        |        Description/Default         |            Restrictions            |
|                   |                                    |                                    |
-----------------------------------------------------------------------------------------------
|                   |                                    |                                    |
| textfile          | The name of the input file that    | Must be an ASCII file or a system  |
|                   | the FORTRAN 77 compiler will read; | defined file name such as $STDIN.. |
|                   | the default is $STDIN.             |                                    |
|                   |                                    |                                    |
-----------------------------------------------------------------------------------------------
|                   |                                    |                                    |
| progfile          | The name of the file that will     | If the specified file exists, the  |
|                   | contain the program after the      | file must have the file code       |
|                   | compile and link is complete.  The | NMPRG. If the file does not exist, |
|                   | default is $OLDPASS.               | a permanent program file is        |
|                   |                                    | created.                           |
|                   |                                    |                                    |
-----------------------------------------------------------------------------------------------
|                   |                                    |                                    |
| listfile          | The name of the file on which the  | Must be an ASCII file or a system  |
|                   | compiler will write the program    | defined file name such as          |
|                   | listing; the default is $STDLIST.  | $STDLIST.                          |
|                   |                                    |                                    |
-----------------------------------------------------------------------------------------------
|                   |                                    |                                    |
| text              | A specification of initial         | None.                              |
|                   | compiler directives.               |                                    |
|                   |                                    |                                    |
-----------------------------------------------------------------------------------------------

Description 

If textfile is omitted, the default file is $STDIN, which is the current
input device.  In a session, this device is the terminal, allowing you to
enter source code interactively.  For interactive mode, a special prompt
(>) appears on the screen.  Indicate the end of the source code by
entering a colon (:)  immediately after the prompt.  If listfile is
$STDLIST, the listing is echoed back to the terminal.  If listfile is
$NULL or a file other than $STDLIST, the listing is not echoed back to
the terminal, but is directed to $NULL or to the specified file.

You can create a new program file in one of three ways: 

   *   By specifying a nonexistent program file in the FTNXLLK command.
       This creates a permanent file of the correct type.

   *   By saving a default $OLDPASS program file with the SAVE command.

   *   By building a new program file of NMPRG type with the BUILD
       command.  The filecode parameter must be NMPRG, as in the
       following command:

            :BUILD MYPRG; CODE = NMPRG

If the object file is of type NMRL, any existing module with an entry
point duplicating one in the current compilation unit will be replaced.
See the RLFILE and RLINIT compiler directives in Chapter 7  for
additional information.

If you specify an existing program file, the system reuses this file.  An
error occurs if this file is too small or if the filecode parameter is
not NMPRG.

If listfile is omitted, the system assigns the file $STDLIST as the
default file.  Typically, this is the terminal in a session or the
printer in a batch job.

The text field of the INFO parameter permits you to specify the compiler
directives that initially take effect.  FORTRAN 77 places a dollar sign
($) in front of the text field and places the string before the first
line of source code in the text file.



MPE/iX 5.0 Documentation