我用1122做了个东西,当中有个数学运算的模块,不知道为什么当数学运算中的有幂运算时不能进行仿真和下载。并报出如下的错误提示:
Error[e16]: Segment CODE (size: 0x1080 align: 0x1) is too long for segment definition. At least 0xbe more bytes needed.
The pro××em occurred while processing the segment placement command "-Z(CODE)CODE=F000-FFDF", where at the
moment of placement the ××aila××e memory ranges were "CODE:f01e-ffdf"
Reserved ranges relevant to this placement:
f000-f01d CSTART
f01e-ffdf CODE
我的数学运算程序为:
unsigned int vcppm(unsigned int ad)
{
// Rs=(1-ad/1024)*r
// log(Rs)=k-b*logC
float r=2000.0,b=0.35,k=3.5412;
float y;
y=(1-ad/1024)*r;
y=(log10(y)-k)/b;
y=pow(10,y);
return (unsigned int)y;
}
各位高手谁能告诉我为什么啊?