Kaptaan Jack@lemmy.ml to Programmer Humor@lemmy.ml · 1 year agoProgramming Languageslemmy.mlexternal-linkmessage-square178fedilinkarrow-up1769arrow-down164file-text
arrow-up1705arrow-down1external-linkProgramming Languageslemmy.mlKaptaan Jack@lemmy.ml to Programmer Humor@lemmy.ml · 1 year agomessage-square178fedilinkfile-text
minus-squareRet2libsanity@infosec.publinkfedilinkarrow-up3·1 year agoCompile a c program with gcc then with g++. You will quickly see the difference in size
minus-squarenothacking@discuss.tchncs.delinkfedilinkarrow-up2·1 year 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)