delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/08/10:21:27

From: fredex AT fcshome DOT stoneham DOT ma DOT us
Message-Id: <199607081118.HAA00664@fcshome.stoneham.ma.us>
Subject: Re: Executable size
To: namille2 AT vt DOT edu (Matthew Miller)
Date: Mon, 8 Jul 1996 07:18:22 -0400 (EDT)
Cc: djgpp AT delorie DOT com
In-Reply-To: <4rpd3d$l3u@solaris.cc.vt.edu> from "Matthew Miller" at Jul 7, 96 10:18:21 pm

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019