Pre-built binaries for Linux and macOS on x86_64 are available alongside each release. We also have a script for downloading and installing pre-built versions:
/bin/bash -c "$(curl -fsSL https://seq-lang.org/install.sh)"
This will install Seq in a new
.seq directory within your home directory. Be sure to update
~/.bash_profile as the script indicates afterwards!
Seq binaries require a libomp to be present on your machine.
brew install libomp or
apt install libomp5 should do the trick.
seqc program can either directly run Seq source in JIT mode:
or produce an LLVM bitcode file if a
-o <out.bc> argument is provided. In the latter case, llc and the system compiler can be used to convert the bitcode file to an object file and link it to produce an executable, respectively:
seqc -o myprogram.bc myprogram.seq llc myprogram.bc -filetype=obj -o myprogram.o gcc -L/path/to/libseqrt/ -lseqrt -lomp -o myprogram myprogram.o
This produces a
Interfacing with C: If a Seq program uses C functions from a particular library, that library can be specified via a
-L/path/to/lib argument to
seqc. Otherwise it can be linked during the linking stage if producing an executable.