aWsm
aWsm copied to clipboard
Validate Stack Size Configuration in preparation for cortex-m
The clang WebAssembly linker takes a flag to statically set the stack size of the resulting binary.
Currently our Makefiles define linker flags as follows:
WASMLINKFLAGS=-Wl,--allow-undefined,-z,stack-size=32768,--threads=1
In order to prepare for the cortex-m refactor for WASI, we need to better understand how this flag impacts the memory consumption of the resulting binary.