First, the installation of UBUNTU12.04 under the Y86 Simulator: (Refer to http://archive.cnblogs.com/a/1865627/for appropriate modification)
1. Installing the Bison and flex lexical analysis tools
sudo apt-get install Bison flex
2. Download SIM decompression, address http://csapp.cs.cmu.edu/public/students.html
Chapter 4:processor Architecture
- Y86 Tools and Documentation
- Source Distribution (README) (SIM)
- Simulator Guide (PDF) (Help document)
- Technical describing a successful effort at formally verifying an earlier version of the pipelined Y86 Implementati Ons. (PDF)
3. The graphical interface needs to be installed TCL/TK
3.1 sudo apt-get install Tcl8.5-dev tk8.5-dev tcl8.5 tk8.5 (mine is also installed by default)
3.2 Modify the Makefile file (under the SIM directory):
Guimode=-dhas_gui (originally #guimode=-dhas_gui, which is to remove the annotations)
tklibs=-l/usr/lib/-ltk8.5-ltcl8.5
tkinc=-i/usr/include/tcl8.5
(above that is the upper case I, is the meaning of the include, not small l, path is the path on my machine, I first determine the tk.h and tcl.h in what path, otherwise it will be wrong)
3.3 Compiling
Unix->make Clean;make
after the end can be used, CD to the sim file, the following details please refer to simguide.pdf inside, very detailed. for details please refer to simguide.pdf inside, very detailed.
First, the installation of UBUNTU10.04 under the Y86 Simulator: (Refer to http://archive.cnblogs.com/a/1865627/for appropriate modification)
1. Install the Bison and Lex lexical analysis tools (my default is already installed)
sudo apt-get install Bison flex
2. Download SIM decompression, address http://csapp.cs.cmu.edu/public/students.html
Chapter 4:processor Architecture
- Y86 Tools and Documentation
- Source Distribution (README) (SIM)
- Simulator Guide (PDF) (Help document)
- Technical describing a successful effort at formally verifying an earlier version of the pipelined Y86 Implementati Ons. (PDF)
3. The graphical interface needs to be installed TCL/TK
3.1 sudo apt-get install Tcl8.5-dev tk8.5-dev tcl8.5 tk8.5 (mine is also installed by default)
3.2 Modify the Makefile file (under the SIM directory):
Guimode=-dhas_gui (originally #guimode=-dhas_gui, which is to remove the annotations)
tklibs=-l/usr/lib/-ltk8.5-ltcl8.5
tkinc=-i/usr/include/tcl8.5
(above that is the upper case I, is the meaning of the include, not small l, path is the path on my machine, I first determine the tk.h and tcl.h in what path, otherwise it will be wrong)
3.3 Compiling
Unix->make Clean;make
after the end can be used, CD to the sim file, the following details please refer to simguide.pdf inside, very detailed.
ubuntu12.04 Installing the Cs:app Y86 Simulator