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 I'm actually more focused on building _up_ than _down_; I did this so that I could compile CXXRTL simulation code and immediately run it in the browser
@whitequark well consider me deeply impressed & respectful as always.
@whitequark @s0 I look forward to the day I can get steam achievements for formally verifying an AXI interconnect.
@whitequark @s0 and now i'm picturing a character designer screen where you get to choose AMBA, Avalon, or Wishbone instead of a gender
@azonenberg @whitequark @s0 What about an alternative universe with (widened) ISA/68000/maybe 6502 buses used internally?

@snowfox @whitequark @s0 I don't think any of those support multiple pipelined transactions so it would be super slow.

Would be interesting to imagine what a pipelined variant would look like though