It already does. Any javascript code executed from flash works like that (as I previosly tried to explain more in detail). You don't need to do anything special. You just need to be aware of it and use it for your advantage as much as possible. As an example - you can have variable initialized with very long string stored in flash just by writing code var s="verylongstring" when this code is stored in flash, but once you try to join it with just one additional character s=s+"x" it all moves to ram and you may run out of it.
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.
It already does. Any javascript code executed from flash works like that (as I previosly tried to explain more in detail). You don't need to do anything special. You just need to be aware of it and use it for your advantage as much as possible. As an example - you can have variable initialized with very long string stored in flash just by writing code
var s="verylongstring"
when this code is stored in flash, but once you try to join it with just one additional characters=s+"x"
it all moves to ram and you may run out of it.