CS 3330 Midterm: CS 330 UVA Fall 2017key2C
Document Summary
Letters go in the boxes unless otherwise specified (e. g. , for c 8 write c not 8 ). Write letters clearly: if we are unsure of what you wrote you will get a zero on that problem. Bubble and pledge the exam or you will lose points. Assume unless otherwise specified: little-endian 64-bit architecture, %rsp points to the most recently pushed value, not to the next unused stack address, questions are single-selection unless identified as select-all. Variable weight: point values per question are marked in square brackets. Mark clarifications: if you need to clarify an answer, do so, and also add a * to the top right corner of your answer box. For these questions consider a pipelined processor where the execute stage is split into three stages in order to support instructions with complex alu operations. The resulting stages in this processor are: fetch, decode, execute 1, execute 2, execute 3, memory, writeback.