Bytes of Code limiations in compiling in C using Codewarrior

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

Bytes of Code limiations in compiling in C using Codewarrior

425 Views
jlough
Contributor I

Hello.

 

I am working with a team of 3 people.  We are seniors at Devry university and decided to use the Dragon Board with the codewarrior software for a cost effective solution for the microcontroller for our senior project. 

 

We are getting the error message above when we try to compile   our code in C++.  It gives an   L4025 where it says our bytes of code is limited in C++ to 1024 bytes of   code.  Our file is much larger than this and will grow even further.  While we can compile in C and during the course of our education compiled many large programs in C,   this raised a concern we thought we would head off at the pass. …

We have two questions.

 

First.  Is there   a limitation on  bytes of code   when compiling in just C as compared to C++?  We are concerned we will hit our   limit.

Second.  Does the   limitation just pertain to the actual main.c code, or the entire file, which   includes the header files, start up code, linker files,   etc….

Labels (1)
0 Kudos
2 Replies

289 Views
kef
Specialist I

C++ limitation applies to all object code, generated by compiling source codes with C++ compiler (including object codes, linked from library, which were generated from C++ source files).  C limitation applies to C files (including library files, compiled using C compiler). ASM limitation applies to asm files. Object files include information what source file your code was generated from, so linker may count sum of C code and sum of C++ code.

0 Kudos

289 Views
CrasyCat
Specialist III

Hello

 

  I assume you are using CodeWarrior MCU V10.x and you have a special edition license (the one which is free of charge).

 

  You can get information about limitation of the special edition for CodeWarrior MCU V10.x at following URL:

 

            http://www.freescale.com/webapp/sps/site/overview.jsp?code=CW_SUITES

 

  There you can see that for a ColdFire V1 MCU, in special edition you have a limitation of 64Kb of C source code. For a 

  ColdFire V2, V3 or V4, the size limitation is 128 Kb.

  For C++ the limitation is 1K of generated code.

 

  You can also check the CodeWarrior for MCU Brochure for more details on supported features in each edition.

  Click here to check the brochure.

 

  The limitation is around size of code generated by the compiler/linker (not source code). Code from every module

   within the application is taken into account if it is linked to (or used by) the application.

 

   If you want unlimited C++ code you need a professional edition license,

 

CrasyCat

0 Kudos