LWN.net Logo

Converting GCC to C++

Converting GCC to C++

Posted Jun 18, 2008 15:35 UTC (Wed) by BrucePerens (subscriber, #2510)
Parent article: Converting GCC to C++

C++ is sometimes faster to write. Our most expensive limitation is not the CPU. Remember that G++ is a full compiler, not something that outputs C. It has the opportunity to generate some code that you couldn't specify exactly the same way in C. Also, it might write faster code for some operations than your usual hand-coded alternative in C.


(Log in to post comments)

Converting GCC to C++

Posted Jun 19, 2008 0:28 UTC (Thu) by qg6te2 (guest, #52587) [Link]

Personally I find writing in C++ to be considerably faster in many cases (i.e. not just sometimes). This is especially true when using the standard library as well Boost libraries (many of which are making their way to the next C++ standard, due in 2009).

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