Installation
BitterASM is built from source and needs a Rust toolchain (cargo). From a
clone of the repository:
make install # or: ./install.sh
The script asks before installing each part:
bitterasm(the compiler) andbitter(the binary evaluator), into~/.bitterasm/bin.- The standard library, copied from
std/to~/.bitterasm/std. - Optionally, the
bitterasm-lsplanguage server.
Pass -y to answer yes to every prompt. Add ~/.bitterasm/bin to your
PATH if the script tells you to.
Where imports are found
An absolute import such as from std.riscv.native import * is looked up in
these directories, in order:
- The current directory.
- Each directory in
BITTERASM_PATH(separated likePATH). ~/.bitterasm.
So a program anywhere on disk finds the installed std, and a project’s own
std/ directory takes priority over it. See Imports.
Checking it works
bitterasm --version
bitter --version
Next: Your first program.