Installing the PC164 Software Development Kit (SDK)

First the following environment variables need to be initialized buy adding the following lines to your ".cshrc" file:

setenv EB_BASE …/ebsdk/ebfw
setenv EB_TOOLBOX …/ebsdk/ebtools/unix
setenv EB_DEFAULT_TARGET pc164
setenv EB_BOOTDIR …/ebsdk/boot

 
The software development kit is installed by:

1)    Decompress and extract the files from the archive file:
                > zcat ebsdk.tar.Z | tar xvf –

2)    Change to the directory "ebsdk/ebfw" and then type "make pc164" (NB. Ensure that this executes the
        official DEC make command and not GNUmake)
                > cd ebsdk/ebfw
                > make pc164
 

Compiling Programs for the PC164 Board

To compile programs for the PC164 board the following steps are required:

 Compile the C source code with the following command (the file "hello" is used as an example) , where <ebsdkdir> represents the directory containing the software development kit:
            > cc –g –DDC21164 –DEB164 –DPC164 -I<ebsdkdir>/ebfw/h –c hello.c –o hello.o

Compile assembly language with the following command line:
            > as –c –g –DDC21164 –DEB164 –DPC164 –o hello.o -I<ebsdkdir>/ebfw/h
                -I<ebsdkdir>/ebfw/palcode/pc164 hello.s

Next link the resulting object file with the following command line options:
            > ld –N –T 200000 –non_shared –g –o hello.out <ebsdkdir>/ebfw/obj/pc164/ cstartup.o hello.o
                <ebsdkdir>/ebfw/obj/pc164/lib.a –lc

The next stage is to strip the resulting executable file of all header information. This is done using the following command:
            > <ebsdkdir>/ebtools/unix/cstrip –v –a hello.out hello

The final stage is to copy the executable image into the TFTP directory on alfa-m. This is /usr/tftpdir and the file must be world readable:
            > chmod 644 hello
            > cp hello /usr/tftpdir
 

Program Limitations for PC164

 
Known to Fail Known to Work
fmod, fmodf abs, fabs
sqrt, pow  
sin, cos, tan