LWN.net Logo

Solution: Don't use C.

Solution: Don't use C.

Posted May 16, 2011 19:29 UTC (Mon) by renox (subscriber, #23785)
In reply to: Solution: Don't use C. by benjamingeer
Parent article: What every C Programmer should know about undefined behavior #2/3

Apparently you missed the part of the articles which explains that many of C's undefined behaviours allow the compiler to make better optimisations..

This doesn't mean that one should use C: premature optimisation is still the root of all evil, but just that the reaction "undefined behaviour == don't use C" is naive at best.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds