SPI flash is maped to adresses above 0x60000000 so e.g. require("Flash").read/write work with that. But what Gordon meant is that pieces of javascript that you are executing from flash are not loaded to ram as a whole so e.g. if you have javascript function with 128kb long code it is executed directly from SPI flash even including strings - so something like var s ="....60kb string of data ..." points directly to SPI flash without need of loading whole string to ram when evaluating it.
Also Storage.write and Storage.read would work like that - giving you pointers backed directly by SPI flash.
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.
SPI flash is maped to adresses above 0x60000000 so e.g. require("Flash").read/write work with that. But what Gordon meant is that pieces of javascript that you are executing from flash are not loaded to ram as a whole so e.g. if you have javascript function with 128kb long code it is executed directly from SPI flash even including strings - so something like var s ="....60kb string of data ..." points directly to SPI flash without need of loading whole string to ram when evaluating it.
Also Storage.write and Storage.read would work like that - giving you pointers backed directly by SPI flash.