Forum Discussion
Altera_Forum
Honored Contributor
16 years agoNIOS2IDE 9.1 questions
I recently upgraded from 7.2 to 9.1 and I have a fairly large C application. I am still trying to get comfortable with it. In 7.2, depending on whether you build in debug or release, a direc...
Altera_Forum
Honored Contributor
16 years agogdb can usually debug code compiled at any optimisation level.
At higher levels variables that only exist in registers may not be accessible by name, and static functions that are small, or only called once, will be inlined. If you ever need to look at the asm, the optimised code is often easier to follow because it contains less faffing. I would also always debug with the options you intent using in the release - otherwise you can get a sudden surprise!