cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/14/07:41:58

Date: Tue, 14 Oct 1997 13:40:13 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Myknees <myknees AT aol DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Simple == Big
In-Reply-To: <19971010014900.VAA05748@ladder02.news.aol.com>
Message-ID: <Pine.SUN.3.91.971014133514.14821B-100000@is>
MIME-Version: 1.0

On 10 Oct 1997, Myknees wrote:

> Now here's the kicker.  I also added the -O3 option, and the resulting
> executable was still the same size.  Does this mean that all simple
> programs compiled with djgpp will always be inordinately large?

No, it probably means that the options you set in RHIDE somehow don't get 
to gcc.  I don't use RHIDE, so I won't know why that might happen, but it 
seems like the simplest explanation to everything you report.

Just to make sure that I'm right, try compiling your program from the DOS 
prompt and see if -O3 and -s (lower-case) have any effect on the size of 
the .exe file.  They should.

In general, the smalles program compiled with -s should yield a .exe file
slightly less than 30KB.  If you get significantly larger executables,
something's wrong. 

- Raw text -


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