We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Perhaps someone can tell me why the line "while(EE_busy & 0x01);" is not compiled? volatile UINT8 EE_busy; EE_busy = 0x01; do EE_busy = hs_NvmRDSR(); while(EE_busy & 0x01); Thanks Rich
"the debugger indicates which lines of code were compiled and which were optimized out" Not exactly. The debugger doesn't know aything about optimisation. In 'C' source, 'do...while' is a single construct In this particular case, you will almost certainly find that all the code associated with the do...while control construct has been associated with the 'do' source line. It's not that the 'while' has been optimised out or not compiled; it's just that all the functionality of the 'do...while' construct has been associated with the 'do' source line, rather than the 'while' source line. You will probably find similar effects with 'for' loops...