2019-08-13 05:14 AM
Even though I did set optimization to "Disable for Debugging (-no)" there are certen lines of code which are removed by the compiler and are not available for setting a breakpoint and they do not get executed. This can be observed by certin results as well as by the disassembly missing mentioned lines. Is there a way to really disable optimization (including code removal) or at least a list of things that do get optimized even though -no ist used?
Solved! Go to Solution.
2019-08-18 10:30 PM
Thanks for the idears but I kind of allready found what i was looking for. Sadly there seams to be no such way to turn this and some other parts of the optimization off. For further information have a look here.
2019-08-17 11:41 AM
Hi
Is it reproduced for both Debug & Release project settings?
2019-08-17 12:56 PM
Also, the linker may remove from memory space any variable or function which is not called from main() or interrupts.
Function pointers can make the linker's lost sometime.
2019-08-18 10:30 PM
Thanks for the idears but I kind of allready found what i was looking for. Sadly there seams to be no such way to turn this and some other parts of the optimization off. For further information have a look here.