ubuntu12.04 Installing the Cs:app Y86 Simulator

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.