sysl

Getting Started

Get a compiler that runs, then a program that runs.

sysl compiles through LLVM: the compiler emits textual LLVM IR and hands it to clang to assemble and link. You therefore need two things: the compiler itself, and a toolchain for it to hand its output to. On a Mac with Apple silicon a single brew install provides both. On other systems, build the compiler from source and install the toolchain from your package manager.

By the end of this section you will have written and run a sysl program of your own. The tour continues from there, and the command line covers the rest of the tool beyond run.

If you write C, coming from C is the quickest way in: what translates directly, what changes shape, and the diagnostics a C programmer meets first.

Pages

  • Installation — Install the compiler from the tap, or build it from source.
  • Your first program — A file with no ceremony in it, and what the compiler did with it.
  • The command line — The subcommands, the flags they share, and what each one leaves as an exit status.
  • Coming from C — What translates straight across, what changes shape, and the refusals a C program runs into first.
  • Stability — What sysl says is settled, what it deliberately leaves free, and which platforms it ships for.
  • Performance — How fast sysl 0.13.0 runs, against C++, C, Rust and Zig on Are We Fast Yet and against C, Rust, Swift, Nim and D on plb2.

Search

Esc
↑↓ to navigate ↵ to open Esc to close