1. I am using IAR for 8 bit MCU, IAR shared version: 8.3.2.5988
2. I have made code optimization and linker optimization settings same for both release and debug.
3. IAR by default on these keywords : DEBUG and NDEBUG in debug and release mode respectively.
4. I searched for all the files even back end files but didn't find DEBUG & NDEBUG in my code or any other by default IAR file also.
5. But on building with space optimizations settings both have difference code sizes:
a) release: 7 600 bytes of readonly code memory
189 bytes of readonly data memory
335 bytes of readwrite data memory
B) Debug: 7 953 bytes of readonly code memory
189 bytes of readonly data memory
335 bytes of readwrite data memory
6. What is causing so much change in memory? For 8 bit MCU this is a lot.
2. I have made code optimization and linker optimization settings same for both release and debug.
3. IAR by default on these keywords : DEBUG and NDEBUG in debug and release mode respectively.
4. I searched for all the files even back end files but didn't find DEBUG & NDEBUG in my code or any other by default IAR file also.
5. But on building with space optimizations settings both have difference code sizes:
a) release: 7 600 bytes of readonly code memory
189 bytes of readonly data memory
335 bytes of readwrite data memory
B) Debug: 7 953 bytes of readonly code memory
189 bytes of readonly data memory
335 bytes of readwrite data memory
6. What is causing so much change in memory? For 8 bit MCU this is a lot.