HP 3000 Manuals

OS [ HP Pascal/iX Reference Manual ] MPE/iX 5.0 Documentation


HP Pascal/iX Reference Manual

OS 

OS is an HP Pascal Option.

The OS compiler option specifies the operating system on which the
program is intended to run (not to be confused with the operating system
on which it is compiled).  Then, the compiler identifies language
features that are not available on that operating system.

Syntax 

      {NONE  }
      {HPUX  }
$OS ' {MPE/XL}'$
      {MPEXL }
      {MPE   }
Parameters 

NONE          The compiler identifies language features that are
              unavailable on the HP-UX operating system or the MPE/iX and
              MPE V operating systems.

              Available features are:
                     All ANSI Pascal features.
                     All HP Standard Pascal features.
                     All HP Pascal predefined routines.

HPUX          The compiler recognizes language features that are
              available on the HP-UX operating system.

              Available features are:
                     All ANSI Pascal features.
                     All HP Standard Pascal features.
                     All HP Pascal predefined routines.
                     Predefined procedure assert.
                     Predefined function baddress.
                     Predefined function bitsizeof.
                     Predefined function fnum.
                     Predefined function sizeof.
                     Predefined function waddress.
                     Standard program parameter stderr.

MPE/XL or     The compiler recognizes language features that are
MPEXL         available on the MPE/iX operating system.

              Available features are:
                     All ANSI Pascal features.
                     All HP Standard Pascal features.
                     All HP Pascal predefined routines.
                     Predefined procedure assert.
                     Predefined function baddress.
                     Predefined function bitsizeof.
                     Predefined function fnum.
                     Predefined function sizeof.
                     Predefined function waddress.
                     Predefined function ccode.
                     RUN command parameter INFO.
                     RUN command parameter PARM.

MPE           The compiler recognizes language features that are
              available on the MPE V operating system.

              Available features are the same as for MPE/iX.

Default       Operating system on which the compiler is running.

Location      Anywhere.

If the compiler encounters a language feature that is unavailable on the
intended operating system, it issues an error.

If you are writing a program on one operating system and intend to run it
on another operating system, use the OS option to recognize language
features that are available on the intended system.

Example 

     PROGRAM prog;

     VAR
        condcode : 0..2;
          .
          .
          .
     BEGIN
        $OS 'MPE'$
        condcode := ccode;  {this is legal}
          .
          .
          .
        $OS 'NONE'$
        condcode := ccode;  {this is a compile-time error}
     END.



MPE/iX 5.0 Documentation