eurorack-blocks icon indicating copy to clipboard operation
eurorack-blocks copied to clipboard

Simulator stack size check is wrong

Open ohmtech-rdi opened this issue 3 years ago • 0 comments

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.

ohmtech-rdi avatar Jan 19 '22 19:01 ohmtech-rdi