Possible Duplicate:
Why is a C/C++ “Hello World” in the kilobytes?
Consider the following program written in ANSI C.
file: test.c
main() {}
I'm on Windows 7. I use MinGW to compile this file.
$ gcc test.c
Then, I want to see the size of this file.
$ ls -la a.exe
-rwxr-xr-x 1 Username Administrators 47902 Nov 21 15:57 a.exe
It appears that this completely empty, worthless C program compiles to a binary that is almost fifty kilobytes in size. Why in the world is this happening?