79337423

Date: 2025-01-07 21:40:18
Score: 1.5
Natty:
Report link

Programmable configuration registers are addressed with pointer variables. The programmer must take additional steps:

  1. The address range should be flagged write-through (not cached.) This is NOT a language convention, this is done with supportive libraries.

  2. If the register is both written, and then subsequently READ then the pointer should be flagged as "volatile" telling the compiler "do NOT perform optimizations that avoid reading this value from memory."

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Eric Texley