How to edit SAFE_HEAP_LOAD_i32_4_4 functions the like?

23 views
Skip to first unread message

Andrew de los Reyes

unread,
Jan 24, 2020, 8:04:12 PM1/24/20
to emscripten-discuss
Hey folks,

I'm trying to debug a mem-stomper, and I'm at the point where I'd like to modify SAFE_HEAP_LOAD_i32_4_4 (and possibly similar functions). However, I'm at a loss to find where those functions come from. Can anyone clue me in? I'm still using fastcomp compiler, btw (too many issues in the upstream compiler for me).

Thanks,
-adlr

Andrew de los Reyes

unread,
Jan 24, 2020, 11:10:11 PM1/24/20
to emscripten-discuss
Answering my own question: looks like it's in binaryen's src/passes/SafeHeap.cpp . I still need to figure out how to recompile this, but I'm making progress.

Alon Zakai

unread,
Jan 28, 2020, 1:02:09 PM1/28/20
to emscripte...@googlegroups.com
Correct, that code is in Binaryen. Building it locally and pointing BINARYEN_ROOT in the .emscripten file to use that location should work.

Btw, you say "too many issues in the upstream compiler" - please let us know of any issues blocking you from using it. Fastcomp is deprecated and we are not currently aware of serious blockers left on upstream. So perhaps those were not filed or did not get prioritized properly.

- Alon


--
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/5ed211f5-e16c-44d2-bf42-ce901e606ecc%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages