Chen Shusheng wrote:
Hello,
I do a experiment on compile one file using different compilers.I got the
results below:
Output file1: hello1 14,332Byte under C-free
Output file2: hello2 4,096Byte under Dev-C++
Output file3: hello3 57,344Byte under Microsoft Visual C++ Express
2005
Why does these files vary so large?
Is there any method and tools of analyzing these .EXE files to see its
difference?
CSS
In the two large cases you most likely are getting static linked
copies of the RunTime libraries (i.e., the entire startup, memory
allocation, io system, everything that is referred to in your
program). For the smallest one, you are most likely using dynamic
runtimes (DLL's for the case of Windows, shared libraries for
UNIX). The program size is just about the same, except that
the code lives in other modules than your exe.