How does one interpret the code size displayed in the output window. For example my program compiled for the LPC2368:
Program Size: Code=1264 RO-data=16 RW-data=0 ZI-data=1384
SO: 1) What is ZI-Data? 2) Is RO and RW data RAM? Is it bytes or 32-bit variables? Would I add both to estimate total RAM usage? 3) I don't have any const data types, so I'm wondering how I have 16 bytes of read-only data. Is this compiler related?
Thanks for the help Tomas
Sizes are in bytes. You have ZeroInitialized data. You may have a text string in a print statement resulting in the RO data.
1. ZI Data: Zero Initialized Data
2. RO Data are the constants. Total RAM Size = RW Data + ZI Data Total ROM Size = Code + RO Data + RW Data
3. Some constants (RO data) are generated by the compiler/linker and might also be from libraries. So they will exist regardless that your program doesn't explicitly defines any constants.