-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
How does emscripten generate 32-bit and 64-bit wasm #19833
Comments
We use the |
and i add And i run the hello.html in chromeV114-64bit , chrome return the error: |
The places where support is limited is in the JS library code and in the interaction with JS. Some major features that I know don't work yet are -sASYNCIFY and webgl bindings. |
if i decode a video by ffmpeg and render the yuv by opengl , then emcc the ffmpeg-decode module and opengl render module to the ffmpeg.wasm. the ffmpeg.wasm not support wasm64 ? |
I imagine it will easy to compile ffmpeg.wasm for memory64. The rendering part might not work correctly though.. there are some open PRs related to webGL support. |
OK, where is the open PRs related to webGL support in wasm64 ? |
thanks. and i run the helloword.html (-s MEMORY64 ) , the chrome return the error |
You can use |
that means chrome doesn't support memory64 now , we need set experimental flags to enable it ? |
Yes, its not yet standardized and still experimental, both in the toolchain and the browsers. |
What is more, until this change land you won't even be able to actually allocate a memory larger than 4gb: #19737 |
When will it be standardized and released, and how long will it take, one year? two year? We can plan our work according to stadardized time. |
My hope is that it will reach stage 4 (This basically means it is standardized and will be available in chrome and other browsers without a flag) this year. However, there is obviously no guarantee. |
ok , thanks . i test a decode time , it need 20ms to decode one frame by ffmpeg.wasm32 , and it need 30ms to decode the same frame by ffmpeg.wasm64 . Why does wasm64 take longer to decode than wasm32? |
Thats pretty hard to say. One possible cause of slowdown is the larger pointer size.. this can effect the data locality since it can increase the sizes of structs (and things like vtables). |
I think the original question has been answered here: |
May I ask how to compile wasm64? I always get the error: wasm-ld: error: ffmpeg/src/ffmpeg_project-build/libavutil/libavutil.a(mathematics.o): wasm32 object file can't be linked in wasm64 mode. |
You need to recompile |
Does wasm distinguish between 32-bit and 64-bit, and why does it appear
Target: wasm32-unknown-emscripten
after emcc-v .How does emscripten generate 32-bit and 64-bit wasm ?
The text was updated successfully, but these errors were encountered: