my guideline:
don't use it for code that
- is called from interrupts
- does control reading/writing flash
- has to run fastest
Cal
kolban wrote:Cal,
I'm novice level on the ESP8266 ... would you be able to elaborate on the usage and purpose of this attribute? Maybe some illustrative examples?
Neil
Moin Neal,
your code can be executed when loaded from flash and being cached or loaded from instruction ram.
Flash is big but slower. iram ist fast but small.
Adding the attribute you tell the compiler/linker that its save to put the code in flash.
They trust the instructor: you.
Cal