Reputation: 1417
Tools like Emscripten / the EmSDK can be used to compile different languages, especially C to WebAssembly binaries (.wasm). Websites such as WebAssembly Studio use them to compile high level languages through a web interface on a server.
Have these or alternatives tools been ported to Javascript/WebAssembly such that they can be run on the web themselves?
My objective is to be able to compile C source to .wasm on the browser client, and then run it there.
Upvotes: 3
Views: 1020
Reputation: 70122
Yes, you can compile LLVM into asm.js or WebAssembly and run it within the browser. Here’s an example:
https://kripken.github.io/llvm.js/demo.html
Upvotes: 4