Example toy language -> x86_64 compilers in pure Rust?

Besides cranelift, is there any other Rust project that does src (even if toy language) -> x86_64 assembly without invoking LLVM (or some other heavy weight compiler toolkit).

This is mainly for pedagogical reasons, just to see how all stages of a compiler can be built in Rust.

I am primarily interested in the code generation phrase (i.e. assume that lexing / parsing has already been done, and we already have an abstract syntax tree.)

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.