This course will cover the basics of dynamically allocating and releasing memory as it is needed by a program. The student will learn the difference between the stack and the heap, pointers, memory ownership, allocation, and reclamation.
Students will work through the following chapters and perform the exercises. Questions may be asked of the mentor as well as the community on IRC.
These need to be organized into chapters.
- malloc, calloc, alloca, free (possibly using g_ variants?)
- What is a heap?
- What is a stack?
- Who's responsibility is it to free?
- Basic reference counting of structures.
I think for the student project we will go through and build a boxed type (in gobject parlance) for delivering messages to a post box.