Linux has been successfully run inside a PDF file using a RISC-V emulator based on TinyEMU. Modern PDF formats support JavaScript, but their implementation in browsers is limited due to security concerns. By using an old version of Emscripten targeting asm.js, a modified TinyEMU RISC-V emulator can be embedded within a PDF. Although the emulator's performance is significantly slower due to limitations in Chrome's PDF engine, the project demonstrates a unique and creative use of PDF capabilities. Instructions are provided for cloning the repository and building the project on Linux.
4 Comments
Sort: