flâneur — a map of the web's best reading

CS107 Assignment 6: Heap Allocator

web.stanford.edu · 7,522 words · saved by 1 readers

Assignment by Julie Zelenski, with modifications by Nick Troccoli based on an idea from Randy Bryant & David O'Hallaron (CMU) This assignment gives you a chance to implement a core piece of functionality that you've relied on all quarter - a heap allocator! This assignment will help you: You've been using the heap all quarter, and now you get to go under the hood and build your own version of malloc, realloc, and free! The key goals for a heap allocator are: There are a wide variety of designs that can meet these goals, with various tradeoffs to consider. Correctness is of course essential, but is the next priority to conserve space or improve speed? A bump allocator can be crazy-fast but chews through memory with no remorse. Alternatively, an allocator might pursue aggressive recycling and packing to squeeze into a small memory footprint, but execute a lot of instructions to achieve it. An industrial-strength allocator aims to find a sweet spot without sacrificing one goal for the oth

CS107 Assignment 6: Heap Allocator Assignment 6: Heap Allocator --> Due: Thu Dec 8 11:59 pm No late submissions accepted. Assignment by Julie Zelenski, with modifications by Nick Troccoli based on an idea from Randy Bryant & David O'Hallaron (CMU) Learning Goals This assignment gives you a chance to implement a core piece of functionality that you've relied on all quarter - a heap allocator! This assignment will help you: appreciate the complexity and tradeoffs in implementing a heap allocator further develop your pointer and debugging skills bring together all of your CS107 skills and knowled

Explore this link on the map →

related reading