from Hacker News

RPython-based emulator speeds up RISC-V simulation over 15x

by mattip on 5/16/23, 3:32 PM with 4 comments

  • by brucehoult on 5/17/23, 3:25 AM

    C generated from Sail booting RISC-V Linux: 35 minutes

    RPython generated from Sail booting RISC-V Linux: 2 minutes

    Javascript TinyEmu booting RISC-V Linux in my browser (Safari, M1 Mac): 1.25 seconds

    https://bellard.org/jslinux/vm.html?cpu=riscv64&url=buildroo...

    (2nd or 3rd time once files are cached from the internet)

    Any questions?

  • by mattip on 5/16/23, 3:32 PM

    RPython is a limited Python subset that can be compiled to C. It provides a meta-JIT and a garbage collector for interpreters built on top of it.