News for hackers. Stuff that matters.
Re:When you see a Heisenbug in C, change your compiler's opt... by malkia on Saturday March 01, 2014 @06:55PM (#7326833)
This is what helps me finding bugs, and debugging release code (MSVC specific) - put this around function to disable temporary the optimizations:

  #pragma optimize(push)
  #pragma optimize("",off)

  void the_function()
  {
  }

  #pragma optimize(pop)
Usually some kind of bisection, or lucky guess is done to figure out that it's really compiler bug.

There are no comments on this comment yet.