Guardian Application Conversion Guide
Converting a Pascal Program to Run at a High PIN
Converting Pascal Applications
096047 Tandem Computers Incorporated 6–9
Converting a
Pascal Program to
Run at a High PIN
This subsection describes how to convert your Pascal program to run at a high PIN
under the D-series operating system. Figure 6-2 shows a typical application. The box
shows which processes this part of the conversion applies to. Converting a Pascal
program to run at a high PIN applies to both of these processes.
Figure 6-2. Converting a Pascal Program to Run at a High PIN
$SRV
$REQ
Pascal Requester
Process
Pascal Server
Process
TACL
To convert your program, you must:
Set the HIGHPIN object-file attribute (which tells the system that your program
can run at a high PIN)
Make sure that each library file your program uses also has its HIGHPIN object-
file attribute set (and is capable of running at a high PIN)
Declare PIN variables large enough to hold high-PIN values
Convert MYPID procedure calls into calls to the PROCESS_GETINFO_ and
PROCESSHANDLE_DECOMPOSE_ procedures
These topics are described in the following subsections.
Setting the HIGHPIN
Object-File Attribute
The HIGHPIN object-file attribute directs the system to run a process at a high PIN if
one is available. If a high PIN is not available, the process runs at a low PIN if one is
available. You set the HIGHPIN object-file attribute either during compilation using a
compiler directive or after compilation using the Binder program.
To set the attribute when you compile your program, specify the HIGHPIN directive
in your source code or as a compiler option in the TACL RUN command for the Pascal
compiler. The BINSERV program then sets the HIGHPIN attribute in the object file.
An example of this directive in your source file is:
?HIGHPIN
An example of this directive as a compiler option is:
10> PASCAL /IN passrc,OUT $s.#paslst,NOWAIT/ pasobj; HIGHPIN