What is the most general approach to place a structure into the flash (microcontrollers)
问题 I am working on an embedded C project using GCC for ARM V-4.8.3 toolchain. I have an array of look-up structures that are read only during the life cycle of the entire program. Since I am running out of RAM (and have plenty of Flash unused) it is better idea to push them into the flash, which will not affect the function of the program. The problem is how. One way to do so is using the variable __attribute__ ((section ("TEXT"))) provided by GCC. In this case my code is compiler dependent. If