LLAM 3.0.1: compiler-qualified managed C and asynchronous preemption →
LLAM v3.0.1
Get started

LLAM

Low Level Asynchronous Machine

Write blocking C.
Run it concurrently.

Stackful user threads for C11, parked on io_uring, kqueue, and IOCP.

Get started
Linux and macOSWindows, PowerShell

Why LLAM?

Open example
A connection handler beside a scheduler trace. conn 1 reaches llam_read and parks on io_uring while worker 0 keeps running other tasks. When the fd is readable conn 1 continues on worker 1. Workers blocked: 0. The same handler and trace, stacked for a phone.

The trace is an illustration, not a measurement. The handler is real C and runs against the 3.0.1 runtime.

Managed C in 3.0.1

The SDK prechecks managed objects and verifies the linked image. llam_runtime_create() admits qualified task code for asynchronous preemption, and compatible native workers can resume captured portable tasks.

Built to be verified

Verification is platform-local. A green Linux run does not prove the kqueue or Windows IOCP backend, so each one runs its own gates.

Platform gates

Every backend verifies on its own operating system, against its own kernel contract.

make verify-linux CC=gcc

Stress and soak

Long runs exercise core runtime behavior without depending on the example chat server.

make test-runtime-soak

Hardening

Static analysis, dependency audit, and heavy fuzzing before release candidates and security-sensitive changes.

make test-hardening

Sanitizers

ASan and TSan builds keep their objects separate from ordinary builds.

make test-asan

ABI contract

Struct handshakes, compatible prefixes, and shared-library exports stay under test within an ABI major.

make audit-shared-exports

Managed compiler and SDK

A pinned LLVM 23.1.2 job must execute all four stages. A missing or skipped stage is a failure.

scripts/verify_managed_ci.py

One API. Three native backends.

The same llam_read() parks on the native backend for each platform. Unsupported descriptors fall back to a blocking helper, so a scheduler worker is not pinned.

See platform support
ssize_t n = llam_read(fd, buf, sizeof buf);
Linuxx86_64, aarch64
io_uringPrimary
macOSarm64, x86_64
kqueueSupported
Windows10 and 11, x86_64
IOCPSupported

See why a task is stuck

A runtime dump shows lifecycle state, live tasks, I/O waiters, blocking jobs, and who owns each wait. Capture it when a task appears stuck.

Read the diagnostics guide

Start using LLAM today

Release
$ curl -fsSL https://github.com/Feralthedogg/LLAM/releases/download/v3.0.1/install.sh |
sh -s -- --version 3.0.1 --prefix "$HOME/.local"
> 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"

The commands install the 3.0.1 SDK. A source build is also available.

↑↓ Navigate↵ Openesc CloseSearching the 3.0.1 docs