CodeWarrior Limits

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CodeWarrior Limits

2,378 Views
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
Labels (1)
Tags (1)
0 Kudos
4 Replies

546 Views
CrasyCat
Specialist III
Hello
 
Size limitation is on size of the generated object code.
 
Crasycat
0 Kudos

546 Views
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 Kudos

546 Views
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 Kudos

545 Views
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 Kudos