If I compile a hello world program with Dev-C++, the exe file is very heavy. A hello world program in Release mode had 3133720 Bytes in size, a hello world program in Debug mode had 3221550 in size. For comparison, I also compiled the program with my MinGW g++ and got a file which had 44094 Bytes in size.
Code:
include
int main(){
std::cout << "Hello World!";
}
Then, I used printf instead of cout and didn't include iostream any more, and the size went down to 361319 Bytes.
If I compile a hello world program with Dev-C++, the exe file is very heavy. A hello world program in Release mode had 3133720 Bytes in size, a hello world program in Debug mode had 3221550 in size. For comparison, I also compiled the program with my MinGW g++ and got a file which had 44094 Bytes in size. Code:
include
int main(){ std::cout << "Hello World!"; } Then, I used printf instead of cout and didn't include iostream any more, and the size went down to 361319 Bytes.
include
int main(){ printf("Hello World!"); }