What zmachine.ps does is to emulate the ZMachine VM in PostScript and display the output to stdout/console.
And if it werent for the PS stack limitations for sure you could emulate Linux under Risc-V.
Heck, you can emulate old RISC Linux' syscalls (enough to run static binaries) in Perl without ever calling to C bindings, not even once.
Previous discussion: https://news.ycombinator.com/item?id=42959775
matthewsinclair•3d ago
ge96•16m ago
Is it turing complete, runs actual linux binary through wasm or something
edit: went to tweet RISC-V emulator in PDF