Lesson 11: Memory issues in C
Outline:
- More practice with linked lists in C
- exercises 1–5: debugging with gdb, valgrind
- General linked lists and P1
- representing Scheme lists in C
- exercise 6: parse through testing code
- Wrap-up
What’s next
Upcoming events/assessments:
- CS Bits and Bytes tomorrow at 3:30pm in Olin 149: Comps Reveal!
- Assignment 9 is due tonight
- Interpret Project Part 1 is released and due Monday night
- Quiz 3 will be this Friday as part of Exam Day #1 and cover the following Quiz Learning Objectives:
- Core:
- IC 2: stack vs. heap
- IC 3: structs
- IC 4: arrays
- IC 5: strings
- IC 6: reading C
- Advanced:
- IC 8: writing C
- Core:
What you should do now:
- Read the assigned readings (see below)
- Finish and submit Assignment 9
- Review your notes, classwork, old quizzes, and assignments so far for Exam Day #1
Reading assignment (to be completed by the next class):
C headers and strings (for today):
- Include guards
- Strings in C
- Documentation for string.h – just skim this to be aware of what’s in it
For next time:
- nothing new, just study for the exam day!