Skip to content

Linked-list implementation of the standard C library function “malloc.” Uses a first-fit algorithm with support for coalescing.

Notifications You must be signed in to change notification settings

joshsizer/My-Malloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my_malloc

A custom implementation of C malloc/free function.

I use a linked list to keep track of used/free blocks of memory. To allocate a user new memory, a first fit algorithm is used before requesting more memory from the OS. When possible, neighboring free blocks are coalesced into one in order to reduce external fragmentation.

About

Linked-list implementation of the standard C library function “malloc.” Uses a first-fit algorithm with support for coalescing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published