News for hackers. Stuff that matters.
Re:Do C compilers disprove Fermat's Last Theorem? by rbabich on Saturday May 01, 2010 @01:53AM (#1310191)
I can't say I've tried it, but shouldn't this be enough to avoid the optimization?

   volatile int i=1;
   while (i) { }
Re:Do C compilers disprove Fermat's Last Theorem? by tetha on Saturday May 01, 2010 @01:57AM (#1310194)
Being volatile, i can change in ways which cannot be deduced from the program code.

Thus, the loop loops until something which cannot be deduced from the program code happens.

Thus, yes.