title: Trace changes to variables automatically
body: <p>I am debugging a C program (GCC and GDB in Linux and Visual Studio in Windows) that gives different results on two different architectures. I'd like to compare execution on each architecture by tracing the changes to the values stored in variables in order to locate differences.</p>
  
  <pre>
  file main.c, line 234. Variable A changes from 34 to 23
  file main.c, line 236. Variable B changes from 0 to 2
  .....
  etc.
  </pre>
  
  <p>Can the compiler be instructed to instrument to this effect, without manually littering the source with <code>printf</code> statements?</p>