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

User avatar
By pvvx
#20331 Full:
UDK: http://esp8266.ru/forum/threads/anonsy- ... sp8266.32/
+ nodemcu: https://github.com/nodemcu/nodemcu-firmware
+ ESP8266 SDK (esp_iot_sdk_v1.1.1_15_06_05): http://bbs.espressif.com/viewtopic.php?f=5&t=554
+ Patch: AddNdMCU111.zip: https://yadi.sk/d/bRhaFIChhEH9Z

Compiled... and ...
User avatar
By scargill
#20786 Welcoming any ideas for decreasing iRAM usage - I'm getting dangerously close to the limit despite putting ICACHE_FLASH_ATTR on most (but not all) - really need to understand that better. But 236KB Flash limit? We just recently put a bootloader in and moved out code right down the the bottom - seems to me that there's a lot more than that amount available?

Any good ideas for reducing iRAM use further?

tve wrote:> I am trying to reduce the size for linked firmware to have more room for application code
and file system.

Have you pushed to the limit of the 236KB irom + 32KB iram you have available? See the last section of the the esp-link project readme (and associated makefile) for info https://github.com/jeelabs/esp-link. I eyeballed my esp-link linker map and the __ arithmetic routines seem to make up ~4KB. I don't know how much work it's worth to tr and recover these. I would probably rather slice into the 16KB user settings and 4KB bootloader-mirror flash areas.