Interesting articles about optimizing C/C++ compilers and interactions with undefined behavior.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Interesting articles about optimizing C/C++ compilers and interactions with undefined behavior.

Kip Streithorst
Administrator

As compiler writers are focused on improving their optimizers, they are taking advantage of undefined behavior to more aggressively optimize, resulting in some potentially unexpected results even for experienced C/C++ developers.  I highly recommend reading the below articles.

 

http://labs.qt.nokia.com/2011/06/10/type-punning-and-strict-aliasing/

 

http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html

 

http://blog.regehr.org/archives/213

 

Thanks,

Kip


This message and any enclosures are intended only for the addressee.  Please  
notify the sender by email if you are not the intended recipient.  If you are  
not the intended recipient, you may not use, copy, disclose, or distribute this  
message or its contents or enclosures to any other person and any such actions  
may be unlawful.  Ball reserves the right to monitor and review all messages  
and enclosures sent to or from this email address.

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Opticks-devs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opticks-devs