The ICS312 Final Exam


Logistics


What to study


What to expect

Three questions about pre-Midterm#3 material
...
mov ebx, 0
here:
  push dword 12
  push edx
  call g
  add esp, 8
  add ebx, eax
  cmp ebx, 10
  jne here
...

g:
  push ebp
  mov ebp, esp
  sub esp, 4
  mov eax, [ebp+8]
  mov dword [eax], 10
  mov eax, 2
  mov esp, ebp
  pop ebp
  ret

with questions such as: “how many times is function g called?”, “does function g defines local variables?”, “does function g ever (attempt to) modify memory besides the stack?”.

Other questions about post-Midterm#3 material