I am debugging a firmware code and need to use the output .bin file for programming the hardware. In the debug configuration, the binary file size is 158 KB and in the release configuration, it goes down to 120 KB by applying the optimization settings in IAR Embedded Workbench.
I know that the file size can go down to below 50 KB as there are some old .bin files that the previous developer could get from the software. But I can't find a way to reduce the file size further.
Does anyone have any idea how the binary file size could be reduced in the release configuration in IAR Embedded Workbench?
Here's the ending lines of my map file:
38 674 bytes of readonly code memory
4 721 bytes of readonly data memory
17 351 bytes of readwrite data memory
Errors: none
Warnings: none