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

ARM Compiler 6 Optimisation

Hi!
Finally I have completed the migration of my project from Compiler 5 to Compiler 6.

But that was quite tedious process, and the most actually came from debugging lost variables and functions unknowingly optimised and removed.

There is no warning or comment in the map file.

Volatile keyword doesn't help at all, only __attribute__((used)) works.

How can I actually check which variables and functions have been optimised during compilation and generate them as warnings?

Thanks in advance.

  • Surely, that's nothing unusual in any modern, optimising compiler?

    "How can I actually check which variables and functions have been optimised during compilation and generate them as warnings?"

    While it may be useful to have that information somewhere, it should certainly not be in the form of warnings!