Hello, I use Emscripten to compile a CLI application, and then run its _main many times.
The problem is that it expects every call to be "from the scratch", with uninitialized data structures. Right now, e.g. a file has `struct my_type s`, and initializes it on the first run, then it survives till the second run and spoils it. How to re-init WASM, to clear memory for new runs (start afresh) while keeping FS untouched? -- 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-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/140af2b7-874c-4308-8563-044e066fd89fn%40googlegroups.com.