How to avoid that emscripten calls “main” function automatically
I want to generate a WebAssembly from a C-program using Emscripten. I’m using the following flags for emcc: FLAGS = -O0 \ -s ALLOW_MEMORY_GROWTH=1 \ -s TOTAL_MEMORY=134217728 \ -s NO_EXIT_RUNTIME=1 \ -s FORCE_FILESYSTEM=1 \ --memory-init-file 0 \ -s MODULARIZE=1 \ -s WASM=1 \ -s EXPORT_ES6=1 \ -s EXPORTED_FUNCTIONS="['_main']" \ -s EXPORTED_RUNTIME_METHODS=intArrayFromString,allocate,ALLOC_NORMAL \ -DNODEPS=1 That also