Thanks for the pointers, Gordon. Sounds like it "shouldn't be too difficult" to (a) move the source code strings to flash and just keep a string-ref in jsVars, and (b) place compiled functions into flash as well.
What this means to me right now is that for the esp8266 I should place the "save to flash" stuff in a memory mapped area while a SPIFFS filesystem can use the non-mapped area. There's a 2MB limit to what can be mapped.
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.
Thanks for the pointers, Gordon. Sounds like it "shouldn't be too difficult" to (a) move the source code strings to flash and just keep a string-ref in jsVars, and (b) place compiled functions into flash as well.
What this means to me right now is that for the esp8266 I should place the "save to flash" stuff in a memory mapped area while a SPIFFS filesystem can use the non-mapped area. There's a 2MB limit to what can be mapped.