Quick Start

Go from zero to a running Camelot kernel in 30 seconds.

Camelot is a C23-compliant static library designed to replace the standard library's memory and IO models. This guide covers the installation of the core artifacts (libcamelot.a) and the compilation of your first Workspace-based program.

Installation

Camelot is built from source to ensure binary compatibility with your specific system architecture.

circle-info

Prerequisite

You must have gcc (or clang) and make installed on your system.

  1. Build the Distribution

Clone the repository and run the distribution target. This compiles the static archive (.a) and generates the installer scripts.

git clone https://github.com/akrillick/camelot.git
cd camelot
make dist
  1. Install Artifacts

Run the installer script. This copies headers to /usr/local/include/ and the library to /usr/local/lib/.

cd packages/dist
sudo ./install.sh

The Workspace Pattern

Standard C programs rely on malloc/free for object management, leading to leaks. Camelot enforces a Workspace Pattern:

  1. Create a workspace (Arena) at the start of a scope.

  2. Alloc objects linearly within that workspace.

  3. Release the entire workspace at the end.

circle-check

Zero Leaks

Last updated