CS 3330 Midterm: CS 330 UVA Fall 2015Exam1

13 views8 pages

Document Summary

Letters go in the boxes unless otherwise speci ed (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 speci ed: little-endian 64-bit architecture, %rsp points to the most recently pushed value, not to the next unused stack address, questions are single-selection. Mark clari cations: if you need to clarify an answer, do so, and also add a * to the top right corner of your answer box. Question 1: labels are part of assembly, but not part of the underlying isa the assembly repre- sents. A labels are turned into addresses by the assembler or linker. B labels are used by a different part of the hardware, not the isa. C labels are like comments; they have no semantic meaning.