Mail Archives: djgpp/1996/07/08/10:21:27
Thinking furiously, Matthew Miller wrote:
>
> Hello
>
> What can be done about the large size of the executables
> produced by gcc? A "hello world" program is bloated at
> 57kb. I used the -O switchs, but that produced no change.
> What can be done about this?
This is the "issue that won't die"!
As has been posted here numerous times before, the size of a toy
program (such as Hello World) is not important. If you want to
write toy programs, whether it's 50k or 15k really doesn't matter;
but if it matters to you, then don't use DJGPP for such toy programs.
When using DJGPP for "real" programs of significant size the result
is much more reasoanble. I haven't studied hundreds of large programs,
but one I have worked with recently is Elvis 2.0p (beta test version
of the next release ofElvis, a vi superset). The one compiled with
MSC was about 8kb LARGER than the one compiled with DJGPP.
Fred
--
-------------------------------------------------------------------------------
.---- Fred Smith / Office: fred AT computrition DOT com
( /__ ,__. __ __ / __ : / 508-663-2524
/ / / /__) / / /__) .+' Home: fredex AT fcshome DOT stoneham DOT ma DOT us
/ / (__ (___ (__(_ (___ / :__ 617-438-5471
-------------------------------- Jude 1:24,25 ---------------------------------
- Raw text -