Although intrinsics usually refer to system routines, y ou can de￿ne routines that y ou want to access as if they w ere intrinsics and then place them in new or existing in trinsic ￿les and libraries.

You invoke an intrinsic by calling it from within a program. In HP C/iX, HP P ascal/iX, COBOL II/XL, and HP F ORTRAN 77/iX programs, y ou explicitly call an in trinsic. The Intrinsics Mechanism facilitates the declaration of system in trinsics. All MPE/iX in trinsics are processed as external procedures b y user programs.

Before you can call an intrinsic from a program, y ou must declare it in all languages b y using an intrinsic declaration statemen t. The format v aries depending on the language. Refer to the appropriate language programming guides for details on ho w to call intrinsics. For detailed information on in trinsics and intrinsic declarations, refer to MPE/iX Intrinsics R eference Manual (32650-90028).

Compiling a Program

When you have saved the program source code in a ￿le, it m ust be compiled; translated into machine readable instructions in a program ￿le. The MPE/iX Native Mode language compilers available for this purpose are HP C/iX, HP P ascal/iX, HP COBOL II/XL, and HP FORTRAN 77/iX. Commands are a vailable to:

Compile, link, and execute a program, in one command

Compile and link a program, in one command

Compile a program

An overview of these commands is giv en later in this section. F or detailed information on them, refer to :

HP C/iX Reference Manual Supplement (31506-90001).

HP Pascal Programmer's Guide (31502-90002).

HP COBOL II/XL Pr ogrammer's Guide (31500-90002).

HP FORTRAN 77/iX Programmer's Guide Supplement (31501-90002).

Compiler Input

Follow the appropriate instructions for the language y ou are using; HP C/iX, HP P ascal/iX, HP COBOL II/XL, or HP F ORTRAN 77/iX. For example, to compile a program named MYPROG in HP Pascal/iX, enter:

:PASXL MYPROG

For further instructions on compiling, refer to:

HP C/iX Reference Manual Supplement (31506-90001).

HP Pascal Programmer's Guide (31502-90002).

HP COBOL II/XL Pr ogrammer's Guide (31500-90002).

HP FORTRAN 77/iX Programmer's Guide Supplement (31501-90002).

MPE/iX Commands Reference Manual Volumes 1 and 2 (32650-90003 and 32650-90364).

Program Development 3-3