A dead simple compiler targeting nasm, smol is pascal-like and features some simple IO operations. The language is really dead simple, it does not even have a notion of scopes. What interested me was the assembly generation though, not the feature set of the language.
To install nix, see: Nix install docs
I use nix, specifically nix-shell, simply run:
nix-shell --max-jobs autoA new shell will open with all necessary dependencies to build the compiler.
To build (within nix-shell):
odin build src -o:speedTo run (within nix-shell):
./src.bin smol-programs/read_write.smolof course, you can pass any file with smol code, read_write.smol is just an example.
You may see warnings when compiling depending on your system, it should still work.
If you would rather use Odin directly without nix, please see Odin install docs: Odin install docs
You also need to install gcc-multilib if you do not use nix.