ubuntu12.04 Installing the Cs:app Y86 Simulator

Source: Internet
Author: User

The installation of the Y86 simulator under the first UBUNTU12.04: (refer to http://archive.cnblogs.com/a/1865627/for appropriate changes)

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 Changing the makefile file (under the Sim folder):

Guimode=-dhas_gui (originally #guimode=-dhas_gui, that is, to remove the gaze)

tklibs=-l/usr/lib/-ltk8.5-ltcl8.5

tkinc=-i/usr/include/tcl8.5

(The upper one is the uppercase I, which is the meaning of include.) Not small L, the path is the path on my machine. Determine what path tk.h and tcl.h are in, or they will go wrong.

3.3 Compiling

Unix->make Clean;make

after the end will be able to use, CD to the sim file, the following details please refer to the simguide.pdf inside, very specific. please refer to the Simguide.pdf for specific details. It's very specific.

First of all, UBUNTU10.04 under the Y86 Simulator installation: (reference http://archive.cnblogs.com/a/1865627/for appropriate changes)

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 Changing the makefile file (under the Sim folder):

Guimode=-dhas_gui (originally #guimode=-dhas_gui, that is, to remove the gaze)

tklibs=-l/usr/lib/-ltk8.5-ltcl8.5

tkinc=-i/usr/include/tcl8.5

(The upper one is the uppercase I.) Is the meaning of include. Not small L, the path is the path on my machine. Determine what path tk.h and tcl.h are in, or they will go wrong.

3.3 Compiling

Unix->make Clean;make

then everything will be able to be used. CD-To-Sim file, please refer to the detailed simguide.pdf in the back. A very specific.

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.