Firmware size

Hello! The flash_ntz.bin file after assembly occupies 4.5 MB, regardless of the number of lines of code and functions performed. I see that the size of the firmware file should be 2 times smaller. Is it possible to set the firmware size optimization flag in the compiler and how?
cmake+standart SDK.
image
image

This is the size of the flash memory that is rewritten during the firmware, including firmware1, firmware2, iq, nn model and user date. The firmware itself is stored in the build/firmware.bin folder