--
You received this message because you are subscribed to a topic in the Google Groups "emscripten-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/emscripten-discuss/PzwrSOCba6E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/fa9b1c09-c54b-47c7-bf38-d7afcaf57eb6n%40googlegroups.com.
OK, making progress I think...emmalloc is smaller/simpler/maybe-less-efficient version of dlmalloc?
ww is webworker? I'm using posix threads so I should ignore and use mt libs instead?
libc_optz is minimized for size, has no references to wasi?
--On Thu, Nov 10, 2022 at 10:03 AM Mark Sibly <mark...@gmail.com> wrote:Hi,I'm writing a little compiler for a new language which will output wasm for browsers and I'd like to be able to link it's wasm output with emscripten wasm output so I can write libraries for it in c/c++.However, I'm a bit confused about which sysroot libs I should be linking with, in particular, when I try to link with libc-mt.a I get the following error in the browser:Uncaught (in promise) TypeError: WebAssembly.instantiate(): Import #2 module="wasi_snapshot_preview1" error: module is not an object or functionI don't know much about 'wasi' except it seems to be a 'posix-like' lib for wasm apps that don't run on the web, so I was a bit surprised to get this!I also tried libc-ww.a thinking 'ww' might be for 'web' or something but same problem, it's looking for wasi.What exactly are the 'ww' libs? I get 'mt is for multi-threaded and debug is debug but ww? Dit emmalloc vs dlmalloc? Static vs dynamic?I'll probably get there in the end through trial and error, but any hints would be greatly appreciated!Bye,Mark--
You received this message because you are subscribed to a topic in the Google Groups "emscripten-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/emscripten-discuss/PzwrSOCba6E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/fa9b1c09-c54b-47c7-bf38-d7afcaf57eb6n%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAK32ozidQHx_bBH8SMZmn6T9hUV38wQrZYRNFEYV%2BpZ8TvrLNA%40mail.gmail.com.
Hi,I'm writing a little compiler for a new language which will output wasm for browsers and I'd like to be able to link it's wasm output with emscripten wasm output so I can write libraries for it in c/c++.However, I'm a bit confused about which sysroot libs I should be linking with, in particular, when I try to link with libc-mt.a I get the following error in the browser:Uncaught (in promise) TypeError: WebAssembly.instantiate(): Import #2 module="wasi_snapshot_preview1" error: module is not an object or function
I don't know much about 'wasi' except it seems to be a 'posix-like' lib for wasm apps that don't run on the web, so I was a bit surprised to get this!I also tried libc-ww.a thinking 'ww' might be for 'web' or something but same problem, it's looking for wasi.What exactly are the 'ww' libs? I get 'mt is for multi-threaded and debug is debug but ww? Dit emmalloc vs dlmalloc? Static vs dynamic?I'll probably get there in the end through trial and error, but any hints would be greatly appreciated!Bye,Mark
--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/fa9b1c09-c54b-47c7-bf38-d7afcaf57eb6n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAL_va2_wk9J-TJzUWRKn_N1JyyZ6so8ZjFkAGXQ5eV9HGSKrLw%40mail.gmail.com.
Thanks a bunch Sam, that python script should help a lot!I'm still a bit puzzled about the mysterious wasi calls, it looks like plain libc might have a dependency on some other stuff like wasmfs? I'll keep poking around...
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAK32ozjoPE%2BUWAwmutpnBsRgNcZQeNYFP2N-MwvY%2B2OcBNSt4w%40mail.gmail.com.