I'm trying to understand the memory management of Espruino.
Puck has 64k RAM of which ~11 kbyte are reserved for softdevice and ~37kbyte are reserved at compile time (data + bss). In turn 32kbyte of bss are the 2000 JSVars. Therefore 16k are left for heap and stack.
Heap seams to be 8k (0x2000bcd0 - 0x2000bcd0).
Stack steams to be 16k, 8k shared with heap (0x2000bcd0 - 0x20010000).
Are my calculations correct? Does any one know how much stack and heap is occupied at runtime?
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.
I'm trying to understand the memory management of Espruino.
Puck has 64k RAM of which ~11 kbyte are reserved for softdevice and ~37kbyte are reserved at compile time (data + bss). In turn 32kbyte of bss are the 2000 JSVars. Therefore 16k are left for heap and stack.
Heap seams to be 8k (0x2000bcd0 - 0x2000bcd0).
Stack steams to be 16k, 8k shared with heap (0x2000bcd0 - 0x20010000).
Are my calculations correct? Does any one know how much stack and heap is occupied at runtime?