📄 blurb
字号:
SPIM MIPS Simulator http://www.cs.wisc.edu/~larus/spim.html James Larus Computer Sciences Department University of Wisconsin larus@cs.wisc.edu New Address: Microsoft Research (larus@microsoft.com)SPIM S20 is a software simulator that runs assembly language programs forthe MIPS R2000/R3000 RISC computers. SPIM can read and immediately runfiles containing assembly language statements. SPIM is a self-containedsystem for running these programs and contains a debugger and interface tothe operating system.I wrote SPIM as the target machine for an undergraduate compilercourse. SPIM is very portable, which allows students to generate code for asimple, clean, orthogonal computer; no matter which god-awful machine theyused. SPIM currently runs on a wide variety of Unix systems, and, thanks toDavid A. Carley and Morgan Kaufmann Publishers, on DOS and Windows.SPIM implements almost the entire MIPS assembler-extended instruction setfor the R2000/R3000 (I've omitted some the complex floating point comparisonsand details of the memory system page tables). The MIPS architecture hasevolved considerably since then (in particular the 64 bit extensions), whichmeans that SPIM will not run programs compiled for recent MIPS or SGIprocessors.SPIM comes with complete source code and documentation of all instructions.It also include a large torture test to verify a port to a new machine.SPIM implements both a simple, terminal-style interface and a visualwindowing interface. On Unix, the spim program provides the terminalinterface and the xspim program provides the X window interface. On PCs,the spim program provides a DOS interface and PCSpim provides a Windowsinterface.SPIM is copyrighted by me and can be freely used for non-commercialpurposes. You can get source and compiled files from: http://www.cs.wisc.edu/~larus/spim.htmlSPIM comes with documentation, however Appendix A of Hennessy & Patterson,"Computer Organization and Design: The Hardware/Software Interface," MorganKaufman, 1993 is a far better introduction to the software./JimJames LarusComputer Sciences Department1210 West Dayton StreetUniversity of WisconsinMadison, WI 53706larus@cs.wisc.eduCurrent Address: Microsoft Research, larus@microsoft.comOlder versions of SPIM (available from ftp.cs.wisc.edu:pub/spim/Old_Versions) alsohad the following features: Can also read and run MIPS a.out files (when compiled on a MIPS system) Includes an optional extension by Anne Rogers and Scott Rosenberg ofPrinceton that performs a cycle-by-cycle MIPS simulation that exposes thehardware pipeline.$Header: $
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -