Skip to content

Repository files navigation

LLAM logo

C11 Linux macOS Windows Build License: Apache-2.0

LLAM

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:

What you can do with it

Install

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.

Building

Linux needs build-essential and liburing-dev:

make -j4 CC=gcc
make test

macOS needs the Xcode command-line tools:

CC=clang make -j4
make test

Windows 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-failure

See Build from source for CMake, install prefixes, and managed SDK builds.

Important make targets

  • all - build the runtime libraries, examples, and benchmarks
  • test - build and run the API, ABI, runtime, broker, and shared-load tests
  • test-quick - test plus the quick composite server stress
  • test-hardening - static analysis, dependency audit, sanitizers, and heavy fuzz
  • verify-linux, verify-darwin, verify-windows - the platform-local gate
  • package - build a release archive
  • clean - remove generated files

The Verification guide covers stress, soak, and release gates, and the CLI tool map covers every program a build produces.

Contributing

Please review the contributing guidelines before opening a pull request. Report documentation problems and runtime defects through the issue forms, and security defects privately.

License

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.