colin howard

Empty while(1) loop

Discussion created by colin howard on Sep 20, 2008
Latest reply on Sep 22, 2008 by Daniel Lundin
Hi

Just wondering if any compiler gurus have any comments on the use of

while(1){ }; 

or variations thereof for hanging until the COP/watchdog kicks in.  At a code review I attended an opinion was put forward that an optimiser could remove this completely.  Any thoughts?

Thanks
Colin

Outcomes