-
Notifications
You must be signed in to change notification settings - Fork 27
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
We need a WebAssembly binding for zstandard #12
Comments
Hello The latest Emscripten generates WebAssembly by default, and older versions can build with |
Sure that will help. Thank you. Let me go through. |
I see you have updated required changes for webassembly. It will be helpful if you can create a guide doc to do so. |
Hi,
can you help on this. Thanks. |
Hi @naskarsubhajit,
I don't know why the problem occurs. I used |
Thanks for your help and sorry for late reply. I was able to compile it with EMCC_SDK_VERSION to 1.37.36. I changed in premake5.lua for linkoptions { I see ALLOW_MEMORY_GROWTH=1 allows to expand memory runtime abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 16777216, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime, or (3) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 "). Build with -s ASSERTIONS=1 for more info. |
@naskarsubhajit Hello, sorry for response delay. I don't know why compression method needs more memory, and cannot enlarge memory arrays. IIRC you are using simple API ( |
I see you have compiled zstandard in c to javascript by emscripten.
We need same to get a webassembly (.wasm) . Any lead on this will be really helpful.
The text was updated successfully, but these errors were encountered: