aWsm icon indicating copy to clipboard operation
aWsm copied to clipboard

Validate Stack Size Configuration in preparation for cortex-m

Open bushidocodes opened this issue 3 years ago • 0 comments

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.

bushidocodes avatar Sep 08 '21 21:09 bushidocodes