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.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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.