You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Yes, that sounds about right. Espruino doesn't actually use heap at all, and I don't believe the softdevice does either - since stack grows into heap it's basically no heap and 16k stack.

    That's playing it super safe though, so at some point I may raise the amount of JSVars and reduce the available stack a little.

    Because the interpreter parses as it runs, it does tend to use a little more stack - especially with recursion. Generally it's not that bad though, and there are checks in place to try and ensure that JS code execution errors before the stack is exhausted.

About

Avatar for Gordon @Gordon started