Retrieve the distribution for your architecture from the website, which will have name ARCH.u. To install the distribution, issue the commands: % mv ARCH.u DIR/. # DIR is a directory of your choice % cd DIR % uudecode ARCH.u % gunzip cool.tar.gz % tar -xf cool.tar Next, modify `DIR/Makefile' to reflect your filesystem; there are directions at the top of the Makefile. Now type % ln -s /tmp/cool DIR % cd DIR % gmake install Notes ----- 1. Cool can be installed for multiple architectures sharing a common file system. Just uudecode and untar multiple .u files in the same directory. It is only necessary to run "gmake install" once. 2. The assignment Makefiles require a program called 'arch' that returns a string naming the architecture where 'arch' executes. (This mechanism is used to support multiple architectures; the result of 'arch' is used to select the correct binary to run.) Many systems have 'arch', but if 'arch' is not available on your system it can be defined for architecture ARCH as: #!/bin/sh echo "ARCH" The students must have the 'arch' script in their PATH. The following table lists the architecture names that are built into the binary distributions: for the machine . . . . . . 'arch' should return DEC Alpha running OSF alpha DECstation running Ultrix pmax HP running HPUX snake Sun 4 running SunOS sun4 Pentium running Linux i586 3. `spim' must be built with an absolute pathname to name the trap handler. This distribution has been built with the directory DIR set to /tmp/cool. The symbolic link is used to give spim a pointer to the files it needs, regardless of where you choose to install the system. 4. `spim' does not work properly on Alphas, so you can't run the generated MIPS code on an Alpha.