This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

自己编写的lib函数拷贝到RAM运行



不好意思,又来麻烦各位了,我上次提了个问题,就是我将工程里部分代码封装为lib库,然后在工程里调用库函数,但是系统对运行时间要求比较苛刻,希望将lib内的函数也像在工程内部写的函数一样拷贝到RAM运行,但是我在工程里尝试使用#pragma code_section(function_name, "ramfuncs"),但是从编译的效果看,函数没有拷贝到RAM运行,还是在FLASH里运行。

上次有老师建议我在编写lib函数的时候就拷贝的RAM,所以我就在编写lib的时候加#pragma code_section(function_name, "ramfuncs"),但是也不行。请各位帮忙!多谢!