I am working on KE-02Z controller. I want to reduce my code size well within 4096 bytes. I tried enabling the optimization option in KDS. Like this
After enabling the optimization level settings. My code got reduced to 8112 bytes as shown in the below figure.
I want to reduce it still more. I want to reduce it to a size under 4096 bytes. Can someone help ?
Hi Bala Ram
You could check the gcc.pdf document, it has a section “options that control optimization” that describe optimization option that you could apply to your project. In KDS 2.0 you can find this document in the path ${PATH_KDS2.0_INSTALLED}\doc\pdf\gcc\gcc
I recommend you to change to KDS 3.2, it’s the last version that comes with a new gcc compiler, however, I see that you’re using “Processor expert”, and this tool comes with overalls that increase your size code and it’ll be a little difficult to reduce your size code from 8112 to 4096.
Best Regards
Jorge Alcala