Porting a Linux Program to Run in Browser using Emscripten
21 December 2023
On my infinitely long list of things I wanted to implement one of them was
taking a binary and stuffing it into a webpage to run entirely client side. Today I have accomplished just that with
my new Atari 2600 IDE. This allows you to write an assembly program
entirely in browser and run it without setting up any kind of toolchain on your
own machine. The following are my notes on getting emscripten, a way to
compile c/c++ to run in browser using llvm and wasm, to generate a binary and
interfacing that binary with some vanilla Javascript.