DEVELOPMENT EDITION · 769442725406
Toolchain Manual
On this page

Platforms and runtime limits

Verada runs on macOS on Apple silicon (arm64), with LLVM 21, Z3 and a C compiler; the installer is macOS's. The compiler is built from source; there is no binary package.

Target selection and arithmetic

Native output and the JIT use the host target and data layout. Native build and emit compile for this machine's CPU by default; --target-cpu baseline compiles for a portable baseline of the host's architecture (x86-64-v2 on x86-64, the M1 on Apple arm64, Armv8-A on other arm64), which suits a release, and --target-cpu NAME for a CPU LLVM names (such as apple-m2 or x86-64-v3). The JIT (run and the REPL) always uses this machine's CPU. There is no --target for another architecture or operating system, and no selectable -O level: normal native output uses an LLVM O2 pipeline, and -g disables optimization for native debugging.

The supplied C interface models LP64: C int 32 bits, long and size_t 64 bits. Do not transfer those assumptions to a different ABI without validating it. Language integer bounds, array layout and proof arithmetic are language rules; machine word size alone does not define every Verada numeric type. Debug and optimized executables must implement the same program.

Fixed resources

Resource Limit
Library tasks 64 registered task bodies
Protected-object locks 256 locks
Runtime file table 64 slots, with user-file handles 3 through 63
Dynamic-value secondary stack 4 MiB per thread; exhaustion raises Storage_Error
Executable Big_Integer magnitude At most 2 ** 4096 in absolute value; larger results can raise Storage_Error
Runtime file path passed to open Nonempty, no embedded zero
JIT execution thread stack 64 MiB with a 256 KiB guard and a separate signal stack

These are implementation limits, not command-line tunables. Heap allocation and OS resources can fail earlier: strings, texts and containers are limited only by memory, and an operation that would make one longer than memory holds raises Storage_Error. A proof of range safety does not establish an unlimited file/heap/stack supply.

Tasking and devices

Library tasks use POSIX threads; protected actions use mutexes and condition variables. The compiler checks data races, blocking in protected actions and ceilings statically. The runtime schedules tasks as ordinary threads: priorities and ceilings are checked by the compiler, not used to schedule, so a program gets no deadline or real-time guarantee from them. After main returns, the process waits for library tasks (Verada.Tasking.Stop ends them).

Volatile/atomic/address forms are restricted language interfaces. Correctness depends on the external device protocol, mapping validity, alignment and foreign writers. Run device examples only in an environment that actually provides their addresses.

Execution failures and portability evidence

Native failed checks and unhandled exceptions terminate with status 1; JIT/REPL entries use runtime recovery for defined check/storage/foreign-fault outcomes. A native foreign fault may instead produce an OS signal. The JIT catches certain synchronous C faults and reports B7013; that does not make arbitrary foreign code safe or reversible.

Keep compiler/LLVM/solver/C-compiler identities with release evidence. Re-test native output, C ABI, task behavior, debugger descriptions and resource handling on each newly claimed host. --target-cpu accepting an LLVM CPU name is not evidence that every such CPU is supported or tested.