- Sat Nov 14, 2015 7:19 pm
#34013
For Espruino ...
There are two concepts in memory ... flash memory that is non-volatile and RAM memory. An ESP8266 uses external flash memory (i.e. not built into the ESP8266) and typically has 512K, 1MB or 4MB depending on the board chosen.
The RAM in an ESP8266 is fixed ... typically after loading the Espressif SDK ready for WiFi and TCP/IP, there is commonly about 40K of RAM remaining for applications. Of that 40K, about 12K is available for JavaScript programs AND variables and about 8K left in the heap for TCP/IP buffers. The remaining 20K is used in overhead by Espruino itself.
So the loose answer is that the total of application code source + variables/data is about 12K.
For Smart.js ... I don't have an answer but would love to know.
Free ESP8266 book available for download
here.