Lab 10 Solution F23-4

.pdf

School

University of Michigan *

*We aren’t endorsed by this school

Course

370

Subject

Computer Science

Date

Dec 6, 2023

Type

pdf

Pages

1

Uploaded by KidKnowledgeNarwhal33

Report
Problem 3: P4 Tests With project 4 right around the corner, let’s get ahead and find some of those buggy instructor solutions! For this problem, you will register yourselves as a group and submit (to autograder.io) assembly code AND its correct output when assembled and run through the project 4 cache simulator. You must submit LC2K test cases as described in the project 4 spec. You can download the starter code ( https://eecs370.github.io/project_4_spec/starter_4.tar.gz ) to edit the file and match the format. Once you have written test cases that expose the bugs, you must write the corresponding correct output and submit it to the autograder for full credit. You might find the starter code at eecs370.github.io/labs/lab10.c helpful in generating the output. For every bug that is caught, you will receive 4 points. So for full credit, you need to catch 4 bugs with your tests, and provide the correct output for each. In addition to the constraints listed in the project, each LC2K program you write must execute no more than 5 instructions. 3-5 instructions should be sufficient for a test case, since an executed instruction can produce up to 6 printAction statements (lines with $$$). Be sure to include a halt. Like the spec test case, you don’t explicitly need .fills. No test cases should cause errors on a correct assembler. Each submission will be limited to 3 test cases, but fewer may be needed. Each output file name must be the same as the assembly, with the extension changed to .out. You are free to resubmit tests you wrote for previous projects, and you may submit these for P4 as well without honor code penalty (as long as they were written by members within your group or provided in course materials) A great strategy is to run these test cases on your cache simulator and "diff" your output with the correct output any time you make a change. (Hint: use some test cases with simple cache parameters, like 1.1.1) Autograded
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help