Toy programming language.
I'm archiving this project since I lost interest.
However I recommend looking at the examples folder with c files and the handwritten llvm ir text file translations.
LLVM gets really annoying once things get complex so I also recommend checking out qbe for easier compiler backends to machine code.
Some of the resources I recommend are:
- crafting interpreters - lox language
- buzz lang - written in zig for inspiration
- qbe - compiler backend
- tsoding daily youtube videos of qbe and llvm
- implementations of lox language on github in different languages.
- lua reference guide.
Weekend code jam for Rust Nairobi.
- Compile a
file.nl
file tofile.ll
llvm ir text file. - Call
zig cc file.ll -o file
orclang file.ll
to produce machine code.
- libc
- zig 0.13
- clang (optional)