We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello Friend,
I am working on LPC2364 ARM7-S core controller. I am using GNU C Compiler on KEIL IDE. Now I am facing problem of code otimization.In there is a option of code optimization option. The path for that <Target1/Option for Target1/CC>.
In this option when I compile my code with <Default> optimization option, the size of my hex code is 66kbs. With this option my code give unpredictable result. But this same code is compiled with <No optimization> option, the size of my hex code i 101kbs & my code give predictable result. But this size of my hex code is not permissible. So what can i do? Is there any problem in my code?
Give my reply AS SOON AS POSSIBLE.
Thank you.
Hiten Patel.
"Is there any problem in my code?"
Irrespective of the compiler, If simply changing the optimisation level breaks it, then - Yes; there must be a problem!
Note that the size of the Hex file is not directly related to the executable code size that it represents.