It’s designed for people who want to understand how compilers emit machine code — without the complexity of LLVM or Cranelift.
It currently supports mov/add/sub/ret with correct REX and ModR/M encoding, and includes tests verifying the byte output.
Repo: https://github.com/chrischtel/rask
Feedback welcome, especially from anyone who’s worked on compiler backends or JITs.
chrischtel•2h ago
It’s designed for people who want to understand how compilers emit machine code — without the complexity of LLVM or Cranelift.
It currently supports mov/add/sub/ret with correct REX and ModR/M encoding, and includes tests verifying the byte output.
Repo: https://github.com/chrischtel/rask
Feedback welcome, especially from anyone who’s worked on compiler backends or JITs.