我们可以在功能函数上使用
#pragma CODE_SECTION(xxxxxxxx, "ramfuncs");
将函数设置在 RAM 中运行, 那如何设置让运行库 (比如 rts2800_ml.lib)也在 RAM 中?
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.
我们可以在功能函数上使用
#pragma CODE_SECTION(xxxxxxxx, "ramfuncs");
将函数设置在 RAM 中运行, 那如何设置让运行库 (比如 rts2800_ml.lib)也在 RAM 中?
依葫芦画瓢,这样倒是可以的。
rts2800_ml_FLASH : > FLASHA, PAGE = 0
{
-l rts2800_ml.lib <boot.obj> (.text)
}
rts2800_ml_RAM : LOAD = FLASHA,
RUN = RAMLS0 | RAMLS1 | RAMLS2 |RAMLS3,
LOAD_START(_MathLoadStart),
LOAD_END(_MathLoadEnd),
RUN_START(_MathRunStart),
PAGE = 0, ALIGN(4)
{
-l rts2800_ml.lib <*> (.text)
}
只是名称 _MathLoadStart, 是怎么来的呢?
那就是说: _MathLoadStart, _MathLoadEnd, _MathRunStart 这几个名字可以随便起的?
代码搬移时统一就好,但好的编程习惯还是要起一个好记能代表意思的名字