Emscripten: Emscripten/EmSDK on the Web? (Emscriptify Emscripten?)

Created on 24 Aug 2018  路  3Comments  路  Source: emscripten-core/emscripten

Is it possible to run Emscripten on the Web, via Javascript or Wasm?
I want to compile C source to .wasm binaries on the client side, without having a server.
Has this been done before?

wontfix

Most helpful comment

Yeah, things like clang and python are fairly large, so this would not be lightweight. It could work, though - there are recent ports of most of those, like clang and python, so if someone wanted to look into gluing those up and figuring out any issues, that could be a fun project.

Another option is to run linux in a CPU emulator like Fabrice Bellard's - that would be slower than direct ports, but might take less work.

All 3 comments

Not yet, and probably not for a while. It's theoretically possible, but would take lots of work to put together, as there would need to be WASM versions of Emscripten, Clang, Node, and Python. It would also be several hundred MB.

Yeah, things like clang and python are fairly large, so this would not be lightweight. It could work, though - there are recent ports of most of those, like clang and python, so if someone wanted to look into gluing those up and figuring out any issues, that could be a fun project.

Another option is to run linux in a CPU emulator like Fabrice Bellard's - that would be slower than direct ports, but might take less work.

This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.

Was this page helpful?
0 / 5 - 0 ratings