HW#4 - CprE 381 Computer Organization and Assembly Level...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the 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

Page1 / 3

HW#4 - CprE 381 Computer Organization and Assembly Level...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online