eurorack-blocks
eurorack-blocks copied to clipboard
Simulator stack size check is wrong
We were assuming incorrectly that the stack was 512K, when it is only 128K.
In the simulator version of the module, we make a check for the size of the module structure.
Adapt the check so that if the structure is more than 128K, then we know that it is too much:
- There is also the stack use for functions anyway,
- We can't be really precise because the memory layout on x86_64 will most likely be different than on arm 32-bit.