Re: RES: [Dev-C++] generated .exe is too big
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Szathmary L. <sz...@de...> - 2003-04-23 22:13:31
|
> David and List,
> It seems unbelievable that the same code compiled with gcc 2.95
> generates a 5kb exe file, compared to 35kb when compiled under
> gcc3.2. A 100% increase would be bad enough; but this is a 700%
> increase ??
>
> Can other DevC++ users comment on this ?
Hi,
Last time I wrote the sizes by heart, but now I tried it again:
The example code is:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
printf("Hello World!\n");
system("PAUSE");
return 0;
}
With Dev-C++ 4.01 it is 4608 bytes; with Dev-C++ 4.9.8.0 it is 22619
bytes. Compiler options are the same in both cases (any optimization and
debugging information are switched off).
I tried it with a more complicated console application too: 10240 bytes
vs. 35973 bytes :(
I tried the -Os option too, but it only reduced 1 KB.
Thanks,
Laszlo
|