Skip to content
This repository was archived by the owner on May 4, 2025. It is now read-only.

purpleK2/beap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beap

a simple heap made initially for purpleK2. Was originally meant as a drop-in replacement for liballoc, due to its dubious stability on 64-bit systems.

The library is available at the beap directory, with a CMakeLists.txt for integrating it with your CMake project.

All kernel API are available at beap/beap.h.

For an example implementation, you can check out src/beap_wrappers.c.

Allocator benchmark

The provided src/test.c contains a simple test to allocate X (being provided as an argument, by default it's 1000) times, giving back the time taken for allocation (and deallocation).

To compile, run the following:

cmake -B build . to generate the build files

make -C build to compile the project and produce beap_test (in the root of the project)

run ./beap_test <number of allocations> and wait for the results :)

Licensed under MIT.

About

a heap. and yes the "b" isnt a mistake

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •