Am I correct in assuming that an empty while(condition) loop will *never* be optimized-out (dropped) by the compiler if the condition involves an I/O register?
that is
while(a > b); might be dropped in some optimization modes, but
while(ANYIOREGISTER & SOMEBITMASK); will not, no matter the optimization mode?