Hello
In order to get debug info for your application make sure there is a dot next to each source file in the column with the green bug on top.
This indicate to the compiler it should generate debug info.
To get a dot there just click with the right mouse button next to the source file (or source folder) in the column headed with the green bug.
On question 2, there is no magic answer to that one.
Basic thing you can check:
- Is IAR providing startup code, which only initializes the stack pointer or are they initializing all variables during Startup?
- What is int size when you build your application with IAR?
- What is enumerated variable size you are using with IAR?
- Which memory model are you using in CodeWarrior?
- Where did you look at code size? The code size indicated in the .mcp window status bar is not the size of the application. THe size of the application can be retrieved from the .map file.
Scrolling in the.map file you will see something like
"Summary of section sizes per section type:
READ_ONLY (R): 88 (dec: 136)
READ_WRITE (R/W): 101 (dec: 257)
NO_INIT (N/I): 23D (dec: 573)"
Which indicates actual code and data size.
Size for READ_WRITE sections includes stack size.
Size for READ_ONLY sections includes vector table size.
I hope this helps.
CrasyCat