3 ms·
> that the compiler optimized away some 'empty' loops a little bit too aggressively without realizing that these loops were setting output pins. Doesn't sounds
by lelanthran 7d ago
> that the compiler optimized away some 'empty' loops a little bit too aggressively without realizing that these loops were setting output pins.
Doesn't sounds like a bug in the compiler, sounds more like `volatile` was not used (unless, of course, `volatile` was not being honoured).
- raphman 7d agoMight be. There certainly were bugs in my understanding of micro-controllers and compilers at the time... EDIT: but SDCC indeed ignored 'volatile': https://sourceforge.net/p/sdcc/bugs/436/ https://sourceforge.net/p/sdcc/bugs/436/