Lesson 8: Pointers and Memory
Outline:
- Recap: value vs. reference model
- Recap: pointers
- Program memory
- program memory
- stack vs. heap
- Wrap-up
What’s next
Upcoming events/assessments:
- CS Bits and Bytes tomorrow at 3:30pm in Anderson 329: Anna Rafferty on building GenAI systems to support education
- Assignments 1–5 (all Scheme assignments) cannot be resubmitted after tonight at 10pm
- Assignment 7 is due Friday night
- Quiz 2 will be this Friday and cover the following Quiz Learning Objectives:
- Core:
- PL 2: value vs. reference model
- FS 6: currying and partial application
- FS 7: lazy lists
- IC 1: pointers
- Advanced:
- PL 7: side effects
- Repeat:
- FS 1: procedure calls (CR)
- (maybe, but not guaranteed) FS 2: cons cells (CR)
- FS 12: writing Scheme (AD)
- Core:
What you should do now:
- Read the assigned readings (see below)
- Work on resubmitting Assignments 1–5 with more complete functionality, style fixes, etc.
- Work on Assignment 7
Reading assignment (to be completed by the next class):
Programming in C (from today):
- C Style Guidelines
- Arrays and Structs, C Preprocessor - Sections 6 and 11
- C Reference for Valgrind
Arrays and Structs (for next time):
- Arrays and Structs, C Preprocessor - Sections 6 and 11, if you didn’t already