You are reading a single comment by @AntiCat and its replies. Click here to read the full conversation.
  • 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?

About

Avatar for AntiCat @AntiCat started