MPC5516 Project Wizard / CodeWarrior IDE 5.9.0

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

MPC5516 Project Wizard / CodeWarrior IDE 5.9.0

1,789 Views
SimFr
Contributor I
Hi!

If I open a new project with CodeWarrior IDE 5.9.0 (Project Wizard) for the MPC551x, there is a folder called "Runtime" which refering to CodeWarrior has a code size of 126k and a data size of nearly 29k. CodeWarrior tells me also, that my application has approximately 9k of code and 84k of data. I am using a MPC5516 with 1MByte of Flash and 64k of SRAM.

I want to run the application in SRAM. Therefore I would like to know, where I can shrink my code. Can anybody tell me, what function do the both files in the "Runtime" have? Are these files have to be loaded in the SRAM while the application is running? The files are called "Runtime.PPCEABI.V.UC.a" and "MSL_C.PPCEABI.bare.V.UC.a".

I am not very familiar with the CodeWarrior IDE and PowerPC. So in case, sorry for the trivial question.

Bye, SimFr
Labels (1)
0 Kudos
1 Reply

359 Views
CrasyCat
Specialist III
Hello
 
You need to know that the Code and Data size indicated in the .mcp window do not reflect the actual application code size.
These are code and data size before dead stripping (or worst case code size).
The linker performs dead stripping and only links used  functions and variables to the application. 
 
In order to get an idea of your real application code and data size you need to look into the .map file.
 
The section Memory Map at the end of the .map file indicates the real size of each sections in the application.
 
Size for .text+ .init indicated code size.
Size for .rodata indicates size of constants
Size of .data + .sdata + .bss + .sbss + .sdata2 + .sbss2 indicates size of variables.
 
CrasyCat
0 Kudos