Performance difference between gcc and g++ for C program
问题 Lets say i have written a program in C and compiled it with both gcc and g++, which compilation will run faster? gcc or g++? I think g++ compilation will make it slow, but not sure about it. Let me clarify my question again because of confutation about gcc. Let say i compile program a.c like this on console. gcc a.c g++ a.c which a.out will run faster? 回答1: http://gcc.gnu.org/onlinedocs/gcc-3.3.6/gcc/G_002b_002b-and-GCC.html GCC is a compiler collection. It is mainly used for compilation of C