Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 913 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 913 Bytes

xallocator - A fast fixed block memory allocator

This memory allocator is authored by David Lafreniere (Replace malloc/free with a Fast Fixed Block Memory Allocator). I revised the code a little bit to make it compatible with POSIX environment, reorganized it and created a Makefile for it to generate a shared library libxallocator.so.

Usage

  • Build the shared library: make

  • Clean up intermediate files: make cleantmp

  • Build the demo: make demo. Then the demo program main will appear in the repo directory. Note that currently the benchmarks are only runnable on Windows.

  • Install the library: sudo make install. The headers will be copied to /usr/local/include/xalloc.

  • Remove the library: Remove /usr/local/lib/libxallocator.so and /usr/local/include/xalloc