Welcome to LLAM! LLAM, the Low Level Asynchronous Machine, is a stackful user-thread runtime for C. Write blocking-style C with tasks, channels, and I/O, while the runtime schedules many tasks over a smaller set of OS threads and parks waits on io_uring, kqueue, and IOCP.
In 3.0, llam_runtime_create() and llam_runtime_init() require asynchronous
preemption for compiler-qualified tasks. Compile task code with the LLVM 23.1.2
managed C toolchain; llam-clang uses required managed
mode by default. Unqualified task entries and unsupported native profiles are
rejected. Native C compatibility is an explicit choice through
llam_runtime_create_compat() or llam_runtime_init_compat().
Some handy links:
- Documentation
- Quickstart
- Examples
- Public API
- Platform support
- Production checklist
- Changelog
- Roadmap
- Issue tracker
- Run tasks with their own stacks: spawn, join, sleep, and deadlines in ordinary C control flow.
- Pass values between tasks: channels, select, mutexes, conditions, and cancellation.
- Write I/O that looks blocking: the task parks, and the worker keeps running other tasks.
- Preempt CPU loops with managed C: compiler-qualified C with asynchronous preemption.
- Embed it in a host or bind it from another language through a stable C ABI.
- See why a task is stuck: stats and runtime dumps with wait ownership.
The commands and examples target 3.0.1 (ABI 2.7). Keep the headers and library from the same SDK together; a 2.2.1 SDK cannot build the 3.0.1 examples. For a source installation, follow the build guide.
Linux and macOS:
curl -fsSL https://github.com/Feralthedogg/LLAM/releases/download/v3.0.1/install.sh | sh -s -- --version 3.0.1 --prefix "$HOME/.local"Windows:
Invoke-WebRequest "https://github.com/Feralthedogg/LLAM/releases/download/v3.0.1/install.ps1" -OutFile install.ps1
.\install.ps1 -Version 3.0.1 -Prefix "$env:LOCALAPPDATA\LLAM"Then link it from CMake and run your first task with the Quickstart.
Linux needs build-essential and liburing-dev:
make -j4 CC=gcc
make testmacOS needs the Xcode command-line tools:
CC=clang make -j4
make testWindows builds through CMake from an x64 Visual Studio developer shell or a configured MinGW environment:
cmake -S . -B build-windows -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DLLAM_ENABLE_WINDOWS_BACKEND=ON
cmake --build build-windows
ctest --test-dir build-windows --output-on-failureSee Build from source for CMake, install prefixes, and managed SDK builds.
all- build the runtime libraries, examples, and benchmarkstest- build and run the API, ABI, runtime, broker, and shared-load teststest-quick-testplus the quick composite server stresstest-hardening- static analysis, dependency audit, sanitizers, and heavy fuzzverify-linux,verify-darwin,verify-windows- the platform-local gatepackage- build a release archiveclean- remove generated files
The Verification guide covers stress, soak, and release gates, and the CLI tool map covers every program a build produces.
Please review the contributing guidelines before opening a pull request. Report documentation problems and runtime defects through the issue forms, and security defects privately.
LLAM's first-party code, documentation, tests, examples, and build tools are licensed under the Apache License, Version 2.0. Separately licensed dependencies retain their own terms; see THIRD_PARTY_NOTICES.md and Licensing.
