Despite the title, this blog post goes very deep into how a compiler generates WASM and what that looks like.<p>Lots of hacks as WASM is pretty unfinished as it is, specially regarding linking different modules and the calling convention. The author used the Zig compiler to figure out how to do those things (Zig just does what C does, it seems).<p>I've tried doing something similar, but gave up because of that.