Mail Archives: djgpp/2001/03/02/10:02:57
> From: "Mr. Veli Suorsa" <VJSuorsa AT Surfeu DOT Fi>
> Date: Fri, 2 Mar 2001 15:21:00 +0200
>
> >What's wrong with 100KB? Fortran has a large and complex
> >formatted I/O facility, and you pay for that with the
> >executable size. The bloat is additive, so large real-life
> >programs still get several tens of KBytes added.
>
> I understand this largeness because of complex formatted I/O facility. But...
>
>
> >What is the problem with that, exactly? How large did you
> >expect the program to be on disk?
>
> When you use for example Microsoft fortran or pascal compilers, the
> test program exe size is 10-30 KB.
That's because this doesn't include the libraries: these compilers use
DLLs, whereas DJGPP programs are all statically linked.
> I will appreciate Djgpp compiler team, If you know how to optimize
> code to expected size.
It is already optimized if you use -O2 switch when compiling.
- Raw text -