I'd definitely recommend uploading to 'Flash' rather than RAM - that may help you out. As mentioned by @fanoush you only have 40k or so of RAM available (and it doesn't map 1:1 with code size) but writing code to flash allows Espruino to execute code right out of Flash so it saves a bunch of memory.
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.
Hi,
I'd definitely recommend uploading to 'Flash' rather than RAM - that may help you out. As mentioned by @fanoush you only have 40k or so of RAM available (and it doesn't map 1:1 with code size) but writing code to flash allows Espruino to execute code right out of Flash so it saves a bunch of memory.
Some more info is at https://www.espruino.com/Saving