Skip to content

42-Ikole-Systems/kmalloc

Repository files navigation

✔️ kmalloc

Dynamically allocating memory! fast! My own malloc implementation!

📥 Installation

# Clone the repository
$ git clone --recurse-submodules https://github.com/42-Ikole-Systems/kmalloc

# Build the project
$ make -C kmalloc

# Run the program!
$ ./kmalloc/kmalloc

🧠 Terminology

  • Arena: a self-contained indipendent memory allocator.
  • Zone: pre-allocated contiguous pages for small or large allocations.
  • Region: contiguous bytes that can be used for an allocation.
  • Block: an region of the smallest allocation size inside a zone.
  • Page run: 1+ contiguous pages within a zone.

ℹ️ Sources and References

🧡 Project tempalate

This project was created from an awesome c project template created with ❤️ by K1ngmar.
Check out the template here!