为什么我的IQmath程序运行速度很慢,请问是不是应该把IQmath的程序复制到RAM中运行呢?该怎么操作呢。。。?第一次用C2000。。。
我程序里面在CMD文件里面做了这样的修改 :
/* Allocate IQ math areas: */
IQmath : LOAD = FLASHA,
RUN = RAML01,
LOAD_START(_IQmathLoadStart),
LOAD_END(_IQmathLoadEnd),
RUN_START(_IQmathRunStart),
PAGE = 0
IQmath : LOAD = FLASHA,
RUN = RAML01,
LOAD_START(_IQmathLoadStart),
LOAD_END(_IQmathLoadEnd),
RUN_START(_IQmathRunStart),
PAGE = 0
IQmathTables : LOAD = IQTABLES, PAGE = 0, TYPE = NOLOAD
然后在初始化的时候加了:
MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd, &RamfuncsRunStart);
MemCopy(&IQmathLoadStart, &IQmathLoadEnd, &IQmathRunStart);
InitFlash();
MemCopy(&IQmathLoadStart, &IQmathLoadEnd, &IQmathRunStart);
InitFlash();
但是好像没起到作用。。。。求TI大神帮忙看一下