An advanced allocator library for C.
Find a file
2025-10-16 17:25:34 -05:00
Docs docs(memory management): added return type to functions in memory management docs 2025-04-19 09:02:35 -05:00
Include/Hallocy fix(android build): added missing flag check for neon 2025-10-16 11:48:44 -05:00
Src fix(android build): fixed checking for simd version 2025-10-16 12:07:15 -05:00
Tests feat(allocator): implemented realloc function 2025-04-19 06:49:34 -05:00
.clang-tidy feat(linting): added clang tidy 2025-10-05 09:42:31 -05:00
.gitignore chore(linting): removed .vscode from gitignore 2025-10-05 10:18:48 -05:00
CMakeLists.txt fix(android build): made cmake file work with neon processors 2025-10-16 11:43:29 -05:00
LICENSE Initial commit 2025-04-03 16:49:36 -05:00
README.md docs(index): added index markdown file as starting file for docs 2025-04-19 07:28:33 -05:00

Hallocy

An advanced allocator library for C.

Introduction

Hallocy is an advanced C allocator library. This library implements the standard malloc, calloc, realloc, free, memset, memcopy, memmove and memcmp functions. The aim of this library is to be a better version of the standard C allocator by improving performance. Hallocy supports both Windows and Linux also keeping multithreading in mind.

Features

The hallocy library offers the following features:

  • Allocating and freeing memory
  • Zeroing memory on allocation
  • Reallocating memory
  • Copying and moving memory
  • Setting memory
  • Comparing memory

Installation

Prerequisites

Ensure you have the following installed on your system:

  • CMake (minimum version 3.10)
  • A compatible C compiler (e.g., GCC or MSVC)

Build Steps

  1. Clone the repository:

    git clone https://repo.strawhats.nl/Mineplay/Hallocy.git
    
  2. Navigate to the directory:

    cd Hallocy
    
  3. Create build directory and navigate to it:

    mkdir Build && cd Build
    
  4. Run CMake to configure project:

    cmake ..
    
  5. Build the project:

    cmake --build . --config Release
    

    To build in debug use:

    cmake --build . 
    

    This will both generate the library and test files.

Using the library

The library file can be found in the ./Build/Release folder as Hallocy.lib for windows and in ./Build folder as libHallocy.a for linux. To use the library file you will need to copy the Hallocy folder containing the header files and follow the setup process for a library in the build system you are using.

For more info about how to use the library see the documentation folder named Docs.