But back to the general public... I think its an awesome idea to add this option you described. Because an application with misaligned accesses usually will not only contain one of them and it gets very tedious to figure them all out if SAFE_HEAP terminates your app on every occasion. Even further it might be possible to only report for each single line of SAFE_HEAP_LOAD etc ONCE per run, so that you don't get spammed with useless double reports. It's then easy to map the reported lines back to C++ sources with a debug info options as each SAFE_HEAP_LOAD will have the C++ code line as a comment behind it (could be done in a simple script for instance)...
As far as I know there is no tool outside of emscripten which allows you to enumerate unaligned accesses. Valgrind had a feature request but it seems it landed on the GTFO TODO list for whatever reason... -- 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]. For more options, visit https://groups.google.com/d/optout.
