LWN.net Logo

Russell: GCC and C vs C++ Speed, Measured

Russell: GCC and C vs C++ Speed, Measured

Posted Mar 23, 2013 2:06 UTC (Sat) by Kit (guest, #55925)
In reply to: Russell: GCC and C vs C++ Speed, Measured by mveinot
Parent article: Russell: GCC and C vs C++ Speed, Measured

This is in line with what the article author wrote in a comment on his blog:
> Yep… sizes are exactly the same, objdump -d shows only difference is different
> junk in the .notes section.

There might be some corner cases where they produce different code, but if none were exposed by GCC being compiled as C++, then they'll definitely be the exception rather than the rule.


(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