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

Avoid using Keil 4.13a - it generates defective code

I warn anybody before using ARM Keil 4.13a. It generates defective code. I have spent several hours with debugging a code that has been already worked. The problem affects local variables of functions and passing arguments. Code has been wrongly compiled without any optimization. I have no courage and time to test optimizations.

I also encourage Keil not to publish Keil 4.13a any more.

Keil 4.12 seems to be OK.

Parents
No data
Reply
  • Before making any conclusions - how about adding a function that takes your variables x1 .. x16 as parameters, so the compiler may at least believe that you are using them?

    Right now, you only have a rather large empty loop that doesn't produce any real work.

    Next thing is that you must separate problems with debugger from problems with compiler.

    You show a piece of assembler output - but isn't the x15 = 15 handled by assembler instructions after the source line? You show the assembler above the source line.

Children