This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Quary relelade GNU C Compiler

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.

Parents
  • "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.

Reply
  • "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.

Children
No data