this post was submitted on 16 Jul 2023
646 points (92.3% liked)

Programmer Humor

32396 readers
502 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

No offence

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Ret2libsanity@infosec.pub 3 points 1 year ago (1 children)

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)