2080
2080

Reputation: 1417

Compiling C to WebAssembly on the web

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

Answers (1)

ColinE
ColinE

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

Related Questions