Follow these instructions to install the SimpleScalar tools on a Linux system. These instructions were tested on a Redhat 8 system, and should work as is for other installs. Let me know if you run into any problems. /* ------------------------ DOWNLOADING ------------------------- */ 1. Create a target directory, which will serve as the root for your SimpleScalar tools. In these instructions, this directory will be referred to as "$IDIR" (you can set up an environment variable of the same name to use the following instructions without modification). 2. Download the following gzipped-tar files (from the course web site) into this directory: simplesim-3v0c.tgz simpletools-2v0-nyu.tgz simpleutils-2v0-nyu.tgz 3. Unpack these files (with $IDIR as your working directory) using the following command: "tar zxvf ". You should now have the following subdirectories under $IDIR: binutils-2.5.2 gcc-2.6.3 simplesim-3.0 ssbig-na-sstrix sslittle-na-sstrix /* ---------------------- INSTALLATION --------------------------- */ The following instructions are for building a little-endian version of the SimpleScalar tools. For the assignments in this course, this is all that will be required. 1. First, build the GNU binary utilities: cd $IDIR/binutils-2.5.2 ./configure --host=i386-*-gnu/linux --target=sslittle-na-sstrix --with-gnu-as --with-gnu-ld --prefix=$IDIR make make install 2. Second, build the SimpleScalar simulator itself (this is required for the gcc cross-compiler installation in Step 3 below): cd $IDIR/simplesim-3.0 make config-pisa make 3. Third, build the GNU gcc cross-compiler. This compiler will produce PISA executables from C code, which you can then simulate using the SimpleScalar simulators (and the ones you will build as part of this course): cd $IDIR/gcc-2.6.3 ./configure --host=i386-*-gnu/linux --target=sslittle-na-sstrix --with-gnu-as --with-gnu-ld --prefix=$IDIR make LANGUAGES=c ../simplesim-3.0/sim-safe ./enquire -f > float.h-cross make install At the end of this process, you will have the cross-compiler installed under $IDIR/bin with the name "sslittle-na-sstrix-gcc". Make sure the directory is in your path (or specify it explicitly) and you should be all set to build PISA executables.