next up previous

4.2 Compiling

The compiler used varies according to the type of the node processors and whether you are on the SRM or on a remote host. The host program is compiled using cc or f77. All host programs must be compiled with the -host switch on a local host or the -lhost switch on a remote host.

RX node programs are compiled using the icc or if77 cross-compilers. CX node programs are compiled on the local host using the native compilers cc and f77. On remote hosts, CX node programs are compiled using the cross compilers rcc and rf77. All node programs should be compiled with the -node switch.

Example
Suppose we have an iPSC/860 system consisting only of RX nodes. Let myhost.c and mynode.c be the host and node programs respectively. The host program can be compiled on the local host (SRM) as follows:

cc -host myhost.c -o myhost
The node program can be compiled on the local host or a workstation as follows:
icc -node myprog.c -o myprog

Consult your system administrator for details of your local configuration. For more information on compiling, see the section on System Commands in the iPSC/860 User's Guide.