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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,259件の閲覧回数
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 返答(返信)

885件の閲覧回数
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 件の賞賛
返信

885件の閲覧回数
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 件の賞賛
返信