Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By elektronika_ba
#2027 Since you are already talking about functions located in flash vs ram, might I ask why not putting all functions in Flash at the first place? I have seen some functions of Espressif's sources having the ICACHE_FLASH_ATTR prefix, and others not.

Is the speed of code execution the only issue here, since functions located in FLASH need to be loaded into RAM for execution? Is that the way ESP8266 works?
User avatar
By rrprime
#2127
elektronika_ba wrote:Since you are already talking about functions located in flash vs ram, might I ask why not putting all functions in Flash at the first place? I have seen some functions of Espressif's sources having the ICACHE_FLASH_ATTR prefix, and others not.

Is the speed of code execution the only issue here, since functions located in FLASH need to be loaded into RAM for execution? Is that the way ESP8266 works?


Good question. Can anybody help with this ?