emcc wasm_add_pthread.c \
  -O3 \
  -s USE_PTHREADS=1 \
  -s PTHREAD_POOL_SIZE=8 \
  -s ALLOW_MEMORY_GROWTH=0 \
  -s INITIAL_MEMORY=256MB \
  -s EXPORTED_FUNCTIONS='["_alloc_float_array","_dealloc_float_array","_init_arrays","_calculate_range"]' \
  -s EXPORTED_RUNTIME_METHODS='["ccall","cwrap","wasmMemory"]' \
  --no-entry \
  -o ./binaries/wasm_add_pthread.js \
  -s EXPORT_ES6=1 \
  -s MODULARIZE=1 \
  -s ENVIRONMENT=node

emcc wasm_add_pthread.c \
  -O3 \
  -s USE_PTHREADS=1 \
  -s PTHREAD_POOL_SIZE=8 \
  -s ALLOW_MEMORY_GROWTH=1 \
  -s INITIAL_MEMORY=256MB \
  -s EXPORTED_FUNCTIONS='["_alloc_float_array","_dealloc_float_array","_init_arrays","_calculate_range"]' \
  -s EXPORTED_RUNTIME_METHODS='["ccall","cwrap","HEAPU8"]' \
  --no-entry \
  -o ./web/wasm_add_pthread.js \
  -s EXPORT_ES6=1 \
  -s MODULARIZE=1 \
  -s ENVIRONMENT=web



  //node main.js
#if you do EXPORT_ES6 will the glue file be es6 and be more sturctured?