Skip to content

li21rich/heap-allocator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Segregated Free-List Heap Allocator

A fast, explicit segregated free-list allocator implemented in C11. It uses best fit search with power-of-two size classes and supports immediate coalescing via boundary tags.

Building

Linux / macOS / Windows (MinGW / Clang)

gcc -std=c11 -Wall -Wextra -o heap_test heap_allocator.c main.c
./heap_test

Windows (MSVC)

cl /std:c11 /W4 heap_allocator.c main.c /Fe:heap_test.exe
heap_test.exe

References

  • COMPUTER SYSTEMS: A Programmer's Perspective (Bryant & O'Hallaron)
  • SHMALL (Careaga)

About

Segregated free-list allocator with immediate coalesce

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages