GCC 4.8 migrates to C++
Written by Kay Ewbank   
Friday, 29 March 2013

The GNU Compiler Collection (GCC) is now fully implemented in C++ following the release of GCC 4.8.0. The new version also adds performance improvements and new tools.

The work on moving to C++ has been going on for some years. The team behind GCC give the following reasons for the switch on the GCC wiki:

  • C++ is a standardized, well known, popular language.
  • C++ is nearly a superset of C90 used in GCC.
  • The C subset of C++ is just as efficient as C.
  • C++ supports cleaner code in several significant cases.
  • C++ makes it easier to write and enforce cleaner interfaces.
  • C++ never requires uglier code.
  • C++ is not a panacea but it is an improvement.

Alongside the move to C++, the new version has a new general optimisation level, -Og, that according to the changes log addresses the need for fast compilation and a superior debugging experience while providing a reasonable level of runtime performance.

The memory error detector AddressSanitizer has been added to the new version, along with the ThreadSanitizer tool. This is a data race detector that is based on Valgrind under Linux and Mac, and PIN on Windows.


More Information

GCC wiki

Source code for GCC 4.8.0

Related Articles

GCC Explorer - An Interactive Compiler

The new operator in C++

Casablanca: C++ in the Cloud

A problem of order - constructor initialization

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin,  or sign up for our weekly newsletter.

 

blog comments powered by Disqus

Banner

{loadposition moreNEWSlist

Last Updated ( Friday, 29 March 2013 )
 
 

   
RSS feed of news items only
I Programmer News
Copyright © 2014 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.