gbrc is an LLVM-based static recompiler for the Game Boy DMG-01. With gbrc, you can recompile Game Boy games for any system and build your own frontend using the runtime library. As of right now, gbrc only supports games which don't require MBC (memory bank controller).
go install github.com/boxmanllc/gbrcWe use baker as our build system, because why not?
All the frontend examples are present in runtime/examples. Currently, it has a desktop frontend (using SDL2) and browser frontend (using Emscripten).
It needs clang, opt and SDL2 dev headers to be present in your PATH.
bake sdl
FRONTEND=sdl bake build
./build/tetrisIt needs Emscripten SDK to be present in your PATH.
bake web
FRONTEND=web bake build
python3 -m http.server -d ./build