Installation
Fiducia ships three binaries: fic (the compiler), fire (the
project runner) and fic-lsp (the language server), and a VS Code
extension. They are not yet published to crates.io — install the
pre-built binaries from the website.
Pre-built binaries (recommended)
Pre-built binaries are published monthly (and on manual dispatch) to
fiducia-lang.github.io/releases.
Available platforms: linux-x86-64, macos-arm64.
# Download and extract (replace <version> and <platform> accordingly)
curl -fsSL -o fic.tar.gz \
https://fiducia-lang.github.io/releases/v<version>/fic-<platform>-<version>.tar.gz
tar -xzf fic.tar.gz
# Move to a directory in your PATH (the tarball contains all three binaries)
sudo mv fic fire fic-lsp /usr/local/bin/
# Or for user-local installation
mv fic fire fic-lsp ~/.local/bin/
# Verify installation — fic and fire share one toolchain version
fic --version
fire --version
This manual and the language reference are published at fiducia-lang.github.io/docs/manual.
The Linux binaries need glibc 2.34 or newer (Ubuntu 22.04, Debian 12, Fedora 35 or later).
ℹ️
cargo install fic firewill become available once the project is published to crates.io after the language design stabilises.
libclang (for C imports)
fic reads an imported C header with libclang, which it loads when it
runs, so a project that imports C needs libclang installed. Any version
from 6.0 on works.
- macOS: the Xcode Command Line Tools provide it (
xcode-select --install). - Debian and Ubuntu:
sudo apt install libclang-dev. - Fedora:
sudo dnf install clang-devel.
If fic cannot find it, set LIBCLANG_PATH to the directory that holds
libclang.so (libclang.dylib on macOS).
Editor support
The VS Code extension (also for Cursor) highlights .fis and .fi
files, marks syntax errors and shows hover information. It runs
fic-lsp, from the tarball above, as its language server.
curl -fsSL -o fiducia.vsix \
https://fiducia-lang.github.io/releases/v<version>/fiducia-<version>.vsix
code --install-extension fiducia.vsix
If fic-lsp is not on your PATH, set its location in the editor’s
settings:
{ "fiducia.serverPath": "/path/to/fic-lsp" }
Resolution and type errors are not shown in the editor yet; fic --check
and fire build report them.
Building from source
Building needs Rust 1.92 or newer.
git clone https://github.com/fiducia-lang/fic
cd fic
rustup target add aarch64-unknown-none # fic's build compiles its PD runtime for it
cargo install --path . # fic
cargo install --path fire # fire
cargo install --path fic-lsp # fic-lsp
The repository also provides a Nix flake (nix develop) that supplies
the full toolchain — Rust, the Microkit SDK, and the cross-compiler —
with no manual setup. See
CONTRIBUTING.md.
Prerequisites for building images
Compiling a project to a bootable image (fire build, fire run, or
bare fic — image generation is its default mode) needs the seL4 Microkit SDK and an AArch64
bare-metal cross-compiler.
Microkit SDK
# macOS (Apple Silicon):
curl -fsSL -o microkit-sdk.tar.gz \
https://github.com/seL4/microkit/releases/download/2.3.0/microkit-sdk-2.3.0-macos-aarch64.tar.gz
# Linux (x86-64):
curl -fsSL -o microkit-sdk.tar.gz \
https://github.com/seL4/microkit/releases/download/2.3.0/microkit-sdk-2.3.0-linux-x86-64.tar.gz
tar -xzf microkit-sdk.tar.gz
ARM GNU toolchain
# macOS (Apple Silicon):
curl -fsSL -o arm-gnu-toolchain.tar.xz \
https://developer.arm.com/-/media/Files/downloads/gnu/15.2.rel1/binrel/arm-gnu-toolchain-15.2.rel1-darwin-arm64-aarch64-none-elf.tar.xz
# Linux (x86-64):
curl -fsSL -o arm-gnu-toolchain.tar.xz \
https://developer.arm.com/-/media/Files/downloads/gnu/15.2.rel1/binrel/arm-gnu-toolchain-15.2.rel1-x86_64-aarch64-none-elf.tar.xz
tar -xJf arm-gnu-toolchain.tar.xz
QEMU (for fire run in QEMU mode)
Install qemu-system-aarch64 from your package manager
(brew install qemu, apt install qemu-system-arm, …).
UPPAAL (for fire verify)
fire verify runs the UPPAAL command-line
model checker verifyta. Download UPPAAL and either put verifyta
on your PATH, set $VERIFYTA, or point to it from
fire.toml.
UPPAAL requires a (free academic) licence.
Frama-C and pancake2viper (for contracts)
A project whose imports carry contracts needs a tool to read and prove
them. For C with ACSL annotations, that is Frama-C
33 with its WP plugin, and the fic-acsl plugin from the repository,
which fic uses to read the contracts. For Pancake, fire verify runs
pancake2viper, and building the image needs the CakeML compiler
cake. The Nix flake provides all of them.
Environment variables
| Variable | Needed by | Description |
|---|---|---|
MICROKIT_SDK | image builds | Path to the extracted Microkit SDK. Fallback for [run.target] sdk. |
GCC | image builds | AArch64 cross-compiler binary. Fallback for [run.target] gcc. |
LD | image builds | AArch64 cross-linker binary. Fallback for [run.target] ld. |
LIBCLANG_PATH | fic, with C imports | Directory holding libclang, if it is not found on its own. |
CAKE_ML | image builds with .pnk imports | The CakeML compiler binary. |
FRAMAC | fic and fire verify, with ACSL imports | The frama-c binary (falls back to PATH). |
FIC_ACSL_PLUGIN | fic and fire verify, with ACSL imports | A fic-acsl plugin build that is not installed into Frama-C. |
VERIFYTA | fire verify | The verifyta binary (falls back to PATH). |
PANCAKE2VIPER | fire verify, with .pnk imports | The pancake2viper binary (falls back to PATH). |
PANCAKE2VIPER_CAKE | fire verify, with .pnk imports | The CakeML compiler pancake2viper runs, passed to it as CAKE_ML, when it must differ from the one that builds images. |
FIRE_FIC | fire | The fic binary fire runs (falls back to the fic beside fire, then PATH). |
# Set once — add to your shell profile
export MICROKIT_SDK=<path-to-microkit-sdk>
export GCC=<path-to-arm-gnu-toolchain>/bin/aarch64-none-elf-gcc
export LD=<path-to-arm-gnu-toolchain>/bin/aarch64-none-elf-ld
A project can instead pin the first three in
fire.toml’s [run.target] section.