Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Building an x86-64 instruction encoder in Rust.
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.
There are no comments on this comment yet.
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.