Skip to content

A simple memory allocator that behaves like `malloc()` and `free()`. (this is a learning experiment, actually using this is not recomended)

License

Notifications You must be signed in to change notification settings

Ex-32/simple_allocator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Allocator

This is a simple memory manager for POSIX systems (requires unistd.h and sys/mman.h) that implements two functions: simple_malloc() and simple_free() that behave identically* (but are not interchangeable with) malloc() and free(). Please don't use this, as malloc() and free() are not only built into the c standard library but almost certainly less buggy.

Building

If you want to build it for some reason; after cloning the repo simply run the following from the root of the repo:

mkdir build
cd build
cmake ..
make
*identical behavior attempted but not guaranteed, actually nothing is guaranteed, this library might eat your cat for all i know, i can not stress enough that you should not use this

About

A simple memory allocator that behaves like `malloc()` and `free()`. (this is a learning experiment, actually using this is not recomended)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published