ubuntu12.04 安裝CS:APP Y86模擬器

來源:互聯網
上載者:User

標籤:

下的第一UBUNTU12.04下Y86模擬器的安裝:(參考http://archive.cnblogs.com/a/1865627/ 作適當改動)

1.安裝bison和flex詞法分析工具

sudo apt-get install bison flex

2.下載sim解壓。地址http://csapp.cs.cmu.edu/public/students.html   

Chapter 4: Processor Architecture
  • Y86 tools and documentation
    • Source distribution (README)                            (SIM)
    • Simulator guide (pdf)                                       (協助文檔)
    • Technical report describing a successful effort at formally verifying an earlier version of the pipelined Y86 implementations. (pdf)

             

3.圖形介面須要安裝Tcl/Tk    

3.1 sudo apt-get install tcl8.5-dev tk8.5-dev tcl8.5 tk8.5     (我的也預設裝好了)

3.2 改動makefile檔案(在sim檔案夾下的):

GUIMODE=-DHAS_GUI                   (本來是#GUIMODE=-DHAS_GUI 的,也就是把凝視去掉)

TKLIBS=-L/usr/lib/ -ltk8.5 -ltcl8.5

TKINC=-I/usr/include/tcl8.5                

(上面那個是大寫的i,就是include的意思。不是小L,路徑是我機子上的路徑。自己先確定tk.h和tcl.h在什麼路徑,不然會出錯)

3.3編譯

unix->make clean;make

完了以後就能夠用了,cd到sim檔案中,後面的具體細節請參考simguide.pdf裡面,非常具體了。具體細節請參考simguide.pdf裡面。非常具體了。

先說下UBUNTU10.04下Y86模擬器的安裝:(參考http://archive.cnblogs.com/a/1865627/ 作適當改動)

1.安裝bison和lex詞法分析工具(我的預設已經安裝了)

sudo apt-get install bison flex

2.下載sim解壓,地址http://csapp.cs.cmu.edu/public/students.html   

Chapter 4: Processor Architecture
  • Y86 tools and documentation
    • Source distribution (README)                            (SIM)
    • Simulator guide (pdf)                                       (協助文檔)
    • Technical report describing a successful effort at formally verifying an earlier version of the pipelined Y86 implementations. (pdf)

             

3.圖形介面須要安裝Tcl/Tk    

3.1 sudo apt-get install tcl8.5-dev tk8.5-dev tcl8.5 tk8.5     (我的也預設裝好了)

3.2 改動makefile檔案(在sim檔案夾下的):

GUIMODE=-DHAS_GUI                   (本來是#GUIMODE=-DHAS_GUI 的,也就是把凝視去掉)

TKLIBS=-L/usr/lib/ -ltk8.5 -ltcl8.5

TKINC=-I/usr/include/tcl8.5                

(上面那個是大寫的i。就是include的意思。不是小L,路徑是我機子上的路徑。自己先確定tk.h和tcl.h在什麼路徑,不然會出錯)

3.3編譯

unix->make clean;make

然後一切都將能夠使用。cd至sim檔案,請參考後面詳細simguide.pdf裡面。一個非常具體的。

ubuntu12.04 安裝CS:APP Y86模擬器

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.