暨南大学2021计组实验3.docxVIP

  • 2
  • 0
  • 约1.09万字
  • 约 14页
  • 2022-12-26 发布于广东
  • 举报
Lab 3: Simulating Y86-64 Program 1 Introduction In this lab, you will learn about the implementation of a Y86-64 processor. When completing this lab, you will have a keen appreciation for the interactions between instruction and hardware that affect your programs. You will runtwo simple Y86-64 programs and become familiar with the Y86-64 tools. 2 Type This is an individual project. 3 Instructions Find Sources List: Make sure the the link in sources.list match your ubuntu version: For Ubuntu 14.10 utopic : /outs/p/5182390.html For Other Ubuntu: /%E6%BA%90%E5%88%97%E8%A1%A8 Backup: sources.list.bak # sudo cp?/etc/apt/sources.list?/etc/apt/sources.list.bak Modify: Rewrite sources.list using source from the website. # sudo gedit /etc/apt/sources.list Update: # sudo apt-get update (upgrade / -f install) # sudo apt-get install flex bison For Ubuntu18、16、14: # sudo apt-get install tcl8.5 tcl8.5-dev tk8.5 tk8.5-dev For Ubuntu20 and later: # sudo apt-get install tcl tcl-dev tk tk-dev For Ubuntu18、16、14: In sim and seq directory, find Makefile, and modify it: For Ubuntu20 and later: In sim and seq directory, find Makefile, and modify it: In seq directory, find ssim.c, and modify all interp-result to Tcl_SetResult() and Tcl_GetStringResult(). Refer to /questionstk-h-looks-for-tcl-h-in-usr-include-but-tcl-h-is-in-usr-include-tcl-i-dont-h Find and comment out the lines include “matherr”: For Ubuntu22: In misc and pipe directory,find Makefile, and modify it: /questionsfail-to-compile-the-y86-simulatur-csapp Start by copying the Lab3 to a directory in which you plan to do your work. Unpacked the file using: # tar xvf sim.tar (Or just double click and choose extract) The directory sim contains the following subdirectories: misc Source code files for utilities such as YAS (the Y86-64 assembler), and YIS (the Y86-64 instruction setsimulator). It also contains the isa.c source file that is used byall of the processor simulators. y86-code Y86-64 assembly cod

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档