Mail Archives: djgpp/1997/05/22/09:18:35
Gal-on Broner wrote:
>
> I compile a 14k source using gxx and receive an 200k+ image. How
> can I reduce this to more normal sizes?
In addition to the other messages here something for the wording
of your question. Do not expect that the executable size
depends only on the size of your source file. Here is
very short sample, which you should compile with
gcc -o test.exe test.c
---File test.c-------
static int dummy[2846700L] = {0};
int main()
{
return 0;
}
-----End of test.c--------
This will produce an exe-file of about 11 MB!!
Robert
--
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post: Am Berg 3, D-09573 Dittmannsdorf *
* e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE *
* WWW: http://www.tu-chemnitz.de/~rho *
*****************************************************************
- Raw text -