The emscripten feature only worked for running static constructors I
believe (We should resurrect that feature in binaryen!).  Wizer actually
tries to run as much of `main` as it can too.

I don't see any reason why emscripten and wizer couldn't be used together
but I don't know of any attempts to do so.  One wrinkle is that, unlike
with wasi executables, not all emscripten programs have a single `main`
entry point, but act more like libraries for JS programs.

On Sat, Jun 19, 2021 at 8:31 AM 'Thomas Lively' via emscripten-discuss <
[email protected]> wrote:

> I believe Emscripten used to have a similar feature, but we had to disable
> it because it turned out that we depended on JS setting some values in
> memory before running the Wasm code and the pre-evaluation tool couldn’t
> account for that. I’m not sure whether that situation has changed, though.
>
> On Fri, Jun 18, 2021 at 21:51 Dan C <[email protected]> wrote:
>
>> Hi everyone,
>>
>> I recently came across this tool
>> https://github.com/bytecodealliance/wizer, which doesn't seem designated
>> for Emscripten. I'm wondering whether anyone had any luck with it.
>>
>> Thanks,
>> Dan
>>
>> --
>> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/emscripten-discuss/f8abb27a-95b6-458c-bac9-35a9be0c31cfn%40googlegroups.com
>> <https://groups.google.com/d/msgid/emscripten-discuss/f8abb27a-95b6-458c-bac9-35a9be0c31cfn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/CAJZD_EXGyjh_h8VVQ5y9Qza2V5m1D97M2Bh8tGM5AyhfDpYBhg%40mail.gmail.com
> <https://groups.google.com/d/msgid/emscripten-discuss/CAJZD_EXGyjh_h8VVQ5y9Qza2V5m1D97M2Bh8tGM5AyhfDpYBhg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAL_va2-W%2BKbx8GczfqLNme1b-SN2nmuhwBFgVVkMcHwV0FuKDA%40mail.gmail.com.

Reply via email to