This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: CprE 381 Computer Organization and Assembly Level Programming Homework #4 Assigned: September 22 Due: October 6 (9:00am) [Note from Joe: This assignment is meant to bridge the gap as we end the focus on MIPS assembly and begin looking into architectural and performance issues. To complete this assignment you will need to have installed a version of SPIM (the MIPS simulator) for either Windows or Linux/Unix. SPIM can be found on the CD included with the P&H book or can be downloaded from the web: ( link ). Note that this is a relatively lengthy assignment you have two weeks to complete it and should start early.] Reading: Patterson & Hennessy, Sections 3.1-3.3, B.9, and C.5-C.7 1) Simulating MIPS Code (a) Read the introduction to the SPIM simulator in P&H B.9. Load the provided prob1.s program into SPIM and run the program several times trying different input values. Submit results for at least three distinct values. (b) What is the program doing? Keep your answers brief. (c) Submit a line-commented version of the source code (as prob1.s ) describing the program. (d) Translate the program into a C code equivalent. Submit this program as prob1.c ....
View Full Document
- Spring '08