SPI Programming Manual (G06.24+, H06.03+, J06.03+)

SPI Programming Examples
SPI Programming Manual427506-006
E-3
Compiling the Example Programs
Compiling the Example Programs
Compiling the TAL Programs
1. Set your default subvolume to the subvolume that contains the example source
files. (If you plan to modify the programs for experimentation, copy the source files
from the distribution subvolume to a working subvolume.)
2. If necessary, edit the ASSIGN statements in the compile command file for the TAL
example source files (SETBUILD) to point to the location of the SPI definition files
on your node. These are usually installed in $SYSTEM.ZSPIDEF but can be
installed elsewhere.
3. TACL> obey setbuild
Compiling the C Programs
1. Set your default subvolume to the subvolume that contains the example source
files. (If you plan to modify the programs for experimentation, copy the source files
from the distribution subvolume to a working subvolume.)
2. If necessary, edit the search subvolume (ssv1) list statement in the compile
command file (SECBUILD) for the C example source files to point to the location of
the SPI definition files on your node. These are usually installed in
$SYSTEM.ZSPIDEF but can be installed elsewhere.
3. TACL> obey secbuild
Running the Example Programs
Running the TAL Programs
The SETBUILD macro creates six runnable object files:
Example Object File
E-1 SET0204O
E-3 SET0205O
E-5 SET0206O
E-7 SET0207O
E-9 SETREQRO
E-11 SETSERVO
Run automatically by SETREQO, the requester from E-9. Choose from the first five programs.