Lesson 15: The Function of Functions

Outline:

  1. Basic block diagrams
    • if statements
    • do-while loops
    • while loops
    • for loops
    • function calls
  2. Function calls
    • activity: analyze some broken assembly
    • recap:
      • lea
      • registers vs. the stack/memory
      • push/pop
      • recursion
  3. Why we care about memory: Heartbleed

Reading assignment (to be completed by the next class):

  • Bryant & O’Halloran Sec. 3.7.3–3.7.6 (p. 245–255)
  • Bryant & O’Halloran Sec. 3.8.1–3.8.2 (p. 255–258)