Hi there,
I have decided to take up C/C++ programming as a hobby and starting at the Darwin command line I am getting to grips with GCC/G++.
Using the simple "Hello world" program, I have noticed that if written in C and compiled with GCC I get a binary size of about ~11Kb.
When I write that same program in C++ (using IOSTREAM) and compile with G++ I get a 660Kb binary!!
If I use "strip" this halves the binary size. I wonder if any of you Dev's can offer a bit of guidance as to why this is please? If I try the same example under Fedora Linux on my PC I get a binary sizes ~11K for each.
Thanks for your time