Forum Discussion
Altera_Forum
Honored Contributor
22 years agoIDE Debugger
I started to use the IDE debug environment on Tuesday. So far it looks cool, however I had some problems last night. When I did multiple single steps, the PC was executing lines of C code at random...
Altera_Forum
Honored Contributor
21 years ago --- Quote Start --- originally posted by rppolicy@Jan 3 2005, 12:07 PM perhaps this is the wrong place to post this, but as a software engineer, i do not trust all compiler's optimization without running in the debug environment first. they can sometimes do wierd stuff to your code. if the optimization doen't work, but the non-optimized does, how are you supposed to debug it? the nios2 debugger is the first debugger that i have ever used that does not debug optimized code. --- Quote End --- rpppolicy, The Nios2 debugger does debug optimised code. Your original complaint was that the debugger jumps around the C code. This is simply because the compiler has re-orderred the code for optimal efficiency, so the debugger follows the code sequence which is executed. This is in common with many debuggers