LWN.net Logo

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

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

Posted Mar 24, 2013 12:46 UTC (Sun) by jwakely (subscriber, #60262)
In reply to: Russell: GCC and C vs C++ Speed, Measured by aleXXX
Parent article: Russell: GCC and C vs C++ Speed, Measured

> What does --enable-build-with-cxx actually do ?

Approximately, it does CC=g++

> I mean, even if I do "g++ main.c", main.c is still considered a C file and sizeof('a') should still be 1.

I assume you mean sizeof('a') should be 4 if it was considered a C file, but it isn't, using g++ implies the input file is C++


(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