Skip to content

Emscripten/EmSDK on the Web? (Emscriptify Emscripten?) #7046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
void4 opened this issue Aug 24, 2018 · 6 comments
Closed

Emscripten/EmSDK on the Web? (Emscriptify Emscripten?) #7046

void4 opened this issue Aug 24, 2018 · 6 comments

Comments

@void4
Copy link

void4 commented Aug 24, 2018

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?

@curiousdannii
Copy link
Contributor

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.

@kripken
Copy link
Member

kripken commented Aug 26, 2018

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.

@stale
Copy link

stale bot commented Sep 18, 2019

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.

@stale stale bot added the wontfix label Sep 18, 2019
@stale stale bot closed this as completed Sep 25, 2019
@rudi-cilibrasi
Copy link

i think a wasm native compiler of c/c++ would be the ultimate virtual machine. is there still a reason this is hard two years later?

@kripken
Copy link
Member

kripken commented Sep 13, 2021

I think this is a duplicate of #6432 , closing in favor of that.

@kripken kripken reopened this Sep 13, 2021
@stale stale bot removed wontfix labels Sep 13, 2021
@kripken
Copy link
Member

kripken commented Nov 8, 2021

Closing in favor of #6432 (I apparently clicked the wrong button before).

See the update there, this has been accomplished, #6432 (comment)

@kripken kripken closed this as completed Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants