SLAU131V October 2004 – February 2020
The --ramfunc compiler option and ramfunc function attribute allow the compiler to specify that a function is to be placed in and executed from RAM. Most newer TI linker command files support the ramfunc option and function attribute by placing such functions in the .TI.ramfunc section. If you see a linker error related to this section, you should add the .TI.ramfunc section to your SECTIONS directive as follows. In these examples, RAM and FLASH are names of MEMORY regions for RAM and Flash memory; the names may be different in your linker command file.
For RAM-based devices:
.TI.ramfunc : {} > RAM
For Flash-based devices:
.TI.ramfunc : {} load=FLASH, run=RAM, table(BINIT)
See the Placing functions in RAM wiki page for details.