Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Boot.dev

Learn Memory Management in C

via Boot.dev

Overview

Boot.dev Special Discount:
25% off your first payment!
Grab it
Memory management is something that every programmer needs to deal with and understand at some point. If you're used to working with languages and tools that handle it for you, this course will teach you how all that works under the hood. You'll even build your own garbage collectors from scratch. This course will teach you the C basics you need for the course, but it's not a course about C, it's about memory.

Syllabus

  • C Basics
    • Introduction to the basics of the C programming language
  • Structs
    • Understand how C structs work and how they're laid out in memory
  • Pointers
    • You thought pointers were hard? Wrong. Let's figure them out together.
  • Enums
    • Learn how to use enums (enumerations) in C to create a set of named constants.
  • Unions
    • Unions in C are not the same as they are in TypeScript. Let's grok C unions.
  • Stack and Heap
    • Understand the difference between allocating memory on the stack and the heap
  • Advanced Pointers
    • Let's practice some more advanced pointer concepts - like pointers to pointers
  • Stack Data Structure
    • Build a stack in C using structs and pointers and understand where the memory is allocated
  • Objects
    • Implement your own object system for later use in your garbage collection algorithms
  • Refcounting GC
    • Implement a simple reference counting garbage collector from scratch in C
  • Mark and Sweep GC
    • Implement a basic mark and sweep garbage collector and understand its tradeoffs with refcounting

Taught by

TJ DeVries, Lane, Allan, Hunter, and Dan

Reviews

4.7 rating at Boot.dev based on 933 ratings

Start your review of Learn Memory Management in C

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.