www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/16/04:32:05

From: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Simple == Big
Date: Thu, 16 Oct 1997 08:41:38 +0200
Organization: Lehrstuhl fuer Stroemungsmechanik
Lines: 60
Message-ID: <3445B722.226BBC07@LSTM.Ruhr-UNI-Bochum.De>
References: <3442AF1E DOT 102C AT club-internet DOT fr> <19971016010701 DOT VAA01517 AT ladder01 DOT news DOT aol DOT com>
NNTP-Posting-Host: c64.lstm.ruhr-uni-bochum.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Myknees wrote:
> 
> In article <Pine DOT SUN DOT 3 DOT 91 DOT 971014133514 DOT 14821B-100000 AT is>, Eli Zaretskii
> <eliz AT is DOT elta DOT co DOT il> writes:
> 
> >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.
> [snip]
> 
> Well, this thread is interesting even if it is overkill to worry so much
> about little programs.  Just for the sake of curiousity, I followed up on
> your suggestions and also got together some info on the type of results I
> got with different switches & options.  The code I used is at the bottom
> (and yes, it is unrealistically simple, but yes, I do use the resulting .exe!)
[...]


The thing is that RHIDE adds -g by default (I think, at least my 
installation does it), because in an IDE it appears to be highly
probable the user not only wants to build the program, but also
debug. Hence, what comes out of RHIDE is usually with debugging
symbols. But you can always say
  strip foo.exe
after your done.

One more comment about filesizes:
My current project is a textmode interface (tvision) program
for a  LDA measurements. It comprises a GPIB interface, serial
ports, drives a traverse mechanism and preprocesses the results.
The debug version (including a debuggable tvision lib) has a size
of 2.405.361 Bytes. The stripped version reduces to 508.928 Bytes.

The original program from the manufacurer of the LDA setup was less
powerful,
more crash prone, written for MSC 5.0 or so had about the same size.

So, exe size is not too bad for a 32 Bit program. 

The original only ran with at least 540 kB DOS mem free, which is
quite a pain if you have the compiler on the local net.

-- 
Ciao
Tom

*************************************************************
* Thomas Demmer                                             *
* Lehrstuhl fuer Stroemungsmechanik                         *
* Ruhr-Uni-Bochum                                           *
* Universitaetsstr. 150                                     *
* D-44780  Bochum                                           *
* Tel: +49 234 700 6434                                     *
* Fax: +49 234 709 4162                                     *
* http://www.lstm.ruhr-uni-bochum.de/~demmer                *
*************************************************************

- Raw text -


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