\

Writing a RISC-V Emulator in Rust

41 points - today at 7:34 AM

Source
  • quantummagic

    today at 9:29 AM

    Just a heads-up that only the first three chapters are available so far. Apparently there will be ten, when finished.

    • sylware

      today at 10:09 AM

      It's not the right move, better do it in assembly. I have a little rv64 interprer written in x86_64 assembly.

        • trollbridge

          today at 12:33 PM

          If you're going to make this argument, I'd consider arguing for Zig a little more substantiated; Rust is cross-platform and x86_64 assembly certainly isn't. Most of my day to day computing is done on ARM platforms as are some of my server resources, and I expect that to expand as time goes on.

          • pjmlp

            today at 12:12 PM

            Real life example, in Android 7 Google re-introduced an interpreter for DEX bytecodes, manually written in Assembly, throwing away the old one that existed until Android 5, written in C.

            • andsoitis

              today at 11:37 AM

              > It's not the right move, better do it in assembly. I have a little rv64 interprer written in x86_64 assembly.

              Published your source code?