|
From: Philip B. <phi...@pb...> - 2007-02-13 15:44:19
|
Hey folks,
I've been feeling for a while that my executables have been much larger =
than they need to be, so I tried to make a very simple console =
application in C++ using iostream and nothing more. This code generates =
an executable that is over 400 kb!
---Code begin---
#include <iostream>
using namespace std;
int main()
{
int year;
cout << "How old are you?\n";
cin >> year;
cout << "Okay, you are " << year <<" years old.\n";
fflush(stdin);
getchar();
}
---Code end---
This, I should imagine, would be something like 20 kb. I looked in the =
FAQ of course, and it said that I should make sure that I don't have =
debugging enabled. It does not look like it is, and I just can't figure =
out why the files are so huge. iostream, that's really small. Can anyone =
help? I have not modified any settings in compiler options at all.
Regards
Philip Bennefall |