It's different viewpoints...
Posted May 26, 2011 17:35 UTC (Thu) by
anton (guest, #25547)
In reply to:
It's different viewpoints... by marcH
Parent article:
What Every C Programmer Should Know About Undefined Behavior #3/3
I am really surprised by the number of "the compiler is evil" comments here, whereas this series of LLVM articles just tried to demonstrate the opposite by explaining how things work.
Maybe that was the intention of the author, but he demonstrated that his compiler actually is evil. A while ago I started writing an advocacy piece against this kind of "optimizing C compilers" (or miscompilers) and for compilers that aim for creating the code that the programmer expects; the interesting thing is that many of the arguments in my article are admitted to in Chris Lattner's series (e.g., there is no way to know where your C program incurs undefined behaviour). I should pick my article up again and finally finish it.
(
Log in to post comments)