please enjoy: my Wasm-hosted, Wasm-targeting build of Clang/Clang++/LLD: a self-contained, 25 MiB (gzipped) pure function
https://www.npmjs.com/package/@yowasp/clang
here's how you can use it to "just-in-time" compile and run any C (or C++) code you'd like:
@whitequark Catherine I’m worried if you don’t stop we’ll discover it’s webassembly all the way down

@s0 not bad, actually. Build once, optimise closer to the end user CPU

@whitequark

@mo @s0 @whitequark hopefully the WebAssembly Modules work will make this a more common way of providing interoperable libraries with well-defined interfaces.