C5300: Limitation: code size ‘<actualSize>’ > '<limitSize>' bytes

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

C5300: Limitation: code size ‘<actualSize>’ > '<limitSize>' bytes

910 次查看
TSCeric
Contributor I

I have been writing programs with a 32k code size limitation license, I think.    I got the message:

 

C5300: Limitation Code Size 1969 > 1024 bytes

 

I have compiled much larger code than that in the past.  I still can too.  The difference this time is that I am compiling a test program with 32 bit floating point.

 

Does floating point have a more severe licensing limitation?

标签 (1)
标记 (1)
0 项奖励
2 回复数

536 次查看
BlackNight
NXP Employee
NXP Employee

 

Hello,

it would be good to know which architecture/compiler (S12? S08?) you are using, and which tools. But I know that C++ code had a different 'free' limitation of 1K of code. So could it be that you are using somehow C++ code or libraries?

 

BK

0 项奖励

536 次查看
TSCeric
Contributor I

I am programming a 9s12xdt512 demo board with CodeWarrior.  I have compiled the code as c++ and as c with both using floating point math.  Both produce the same error.  It looks like the floating point compiles up a lot of code fast.  The library alone is compiling up 21509 bytes, startup 62 bytes, main.c is 11 bytes, datapage.c is 546, an my code causes an error somewhere after 1025 bytes.  So it appears that an error occures at just over 23153 bytes total used.

 

Arduino compiles no problem.  I would like to do a speed comparison, but I can't.

0 项奖励