CodeWarrior Limits

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

CodeWarrior Limits

3,256 次查看
MrFlex
Contributor I
Just wondering with the HC12 codewarrior limits if the limit of 32K means 32K bytes of source code (ie the file size of main.c) or if it means the size of code that is loading into the micro(hex file size)

Thanks...

Mr. Flex
标签 (1)
标记 (1)
0 项奖励
回复
4 回复数

1,424 次查看
CrasyCat
Specialist III
Hello
 
Size limitation is on size of the generated object code.
 
Crasycat
0 项奖励
回复

1,424 次查看
luisemmi
Contributor I
Hello CrasyCat.

I wondered which is the generated object code, because I have a project in codewarrior and my list of files, which include also the User Modules, the add of the size code of the each file result is less than 32768, and when I make the project I receive the next error:
This limited version allows only 32768 bytes of C code.

I attach the image with the structure of my files project.


Best regards.
0 项奖励
回复

1,424 次查看
CompilerGuru
NXP Employee
NXP Employee
The code size includes the code of any module, not just user modules. As the user modules using more than 31k, it just needs a little bit of the ANSI library to go over 32k (and depending on the code, it might use a lot of the ANSI library). Check the map file, I think it gets created in those cases too and it should show what got allocated.

Daniel
0 项奖励
回复

1,423 次查看
luisemmi
Contributor I
Dear Daniel,
 
Thanks for the help. Now I understand my problem very well. Yes, I know that the file .map tell me the size of C code in total, but this file show me that number when the process of making the project is complete, and to do that I need a license or my project have less than 32k of C code, otherwise, I am not able to know what is the total of C code of my project. This problem is because I analyse what is the better choise of license for me.
 
Well, thanks again for the help.
 
Best regards.
0 项奖励
回复