Specifying a Version of the Operating System

The COMPILE command includes an option for specifying what version of the operating system the program is meant to run on. It can be one of the following numbers:

22

Specifies Mentor O/S release 2.2.

24

Specifies Mentor O/S and PC/OS release 2.4.

25

Specifies Mentor O/S release 2.5.

26

Specifies Mentor O/S release 2.6.

27

Specifies Mentor O/S release 2.7.

28

Specifies Mentor O/S and O/E release 2.8.

30

Specifies Mentor O/S, PC/OS, and O/E release 3.0.

Although the program compiles for a different version of the operating system, it will not run unless it matches the current operating system release. For example, the ADDNUMS program can be compiled for version 2.7 of the operating system with the following command:

>COMPILE BP ADDNUMS (27)

********

SUCCESSFUL COMPILE!   1 FRAMES USED.

 

>

However, if a user attempts to run the program on a different version of the operating system, the program does not run and an error message is printed:

>RUN BP ADDNUMS

 

[B97] VERSION NUMBER OF COMPILED PROGRAM 'ADDNUMS' IS DIFFERENT FROM THAT OF OPERATING SYSTEM.

 

>

See Also

Compiling the Program

Option for Debugging a Program (X)

Options for Cataloging (C, S)

Listing the Source (L)

Printing Compiler Output (P)

Obtaining the Compilation Time and Date