Kaptaan Jack to Programmer Humor@lemmy.ml • 2 years agoProgramming Languageslemmy.mlimagemessage-square174fedilinkarrow-up1777arrow-down164file-text
arrow-up1713arrow-down1imageProgramming Languageslemmy.mlKaptaan Jack to Programmer Humor@lemmy.ml • 2 years agomessage-square174fedilinkfile-text
minus-square@Ret2libsanity@infosec.publinkfedilink3•2 years agoCompile a c program with gcc then with g++. You will quickly see the difference in size
minus-square@nothacking@discuss.tchncs.delinkfedilink2•2 years agoAnd speed too. A small program using only C features can compile 5x faster with a c compiler then a c++ one. (GCC will use c++ mode on a .cop file so make sure it is .c)
Compile a c program with gcc then with g++.
You will quickly see the difference in size
And speed too. A small program using only C features can compile 5x faster with a c compiler then a c++ one. (GCC will use c++ mode on a .cop file so make sure it is .c)