I am writing a firmware on C language. and I have issue with optimization right now.
When I am running my code on optimization level 0 or 1, the code runs perfectly.
When I put higher optimization level (2 or 3), the code stops working.
I want to figure out why this is happening.
But optimization does not let me put break point on certain lines..
In general, how does everyone debug code with Optimization?
Thank you,
Toru
When I am running my code on optimization level 0 or 1, the code runs perfectly.
When I put higher optimization level (2 or 3), the code stops working.
I want to figure out why this is happening.
But optimization does not let me put break point on certain lines..
In general, how does everyone debug code with Optimization?
Thank you,
Toru