- representing hardware registers (or memory-mapped I/O) as variables - even if the register will never be read, the compiler must not just skip the write operation thinking "Stupid programmer. Tries to store a value in a variable which he/she will never ever read back. He/she won't even notice if we omit the write." Conversly, even if the program never writes a value to the variable, its value may still be changed by hardware.
- sharing variables between execution contexts (e.g. ISRs/main program) (see @kkramo's answerkkramo's answer)
Copy edited (e.g. ref. <http://en.wikipedia.org/wiki/Input/output> and <https://en.wiktionary.org/wiki/occurrance>).
Peter Mortensen
- 1.7k
- 3
- 17
- 23