delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/14/04:59:11

Message-Id: <200007140856.LAA04928@mailgw1.netvision.net.il>
Date: Fri, 14 Jul 2000 11:56:45 +0200
To: "Michael Citron" <michaeljnc AT earthlink DOT net>
X-Mailer: Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5b
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
CC: djgpp AT delorie DOT com
In-reply-to: <Bzlb5.62592$_b3.1827596@newsread1.prod.itd.earthlink.net>
(michaeljnc AT earthlink DOT net)
Subject: Re: How to reduce .EXE file size using RHIDE?
References: <Bzlb5.62592$_b3 DOT 1827596 AT newsread1 DOT prod DOT itd DOT earthlink DOT net>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Michael Citron" <michaeljnc AT earthlink DOT net>
> Newsgroups: comp.os.msdos.djgpp
> Date: Thu, 13 Jul 2000 15:50:57 GMT
> 
> I've just tried using the compiler for the first time and I'm using the
> RHIDE interface.  A small (2) function program produced an .EXE of 148K
> as opposed to 18K when produced by Turbo C 2.0.  How can I configure the
> options in the IDE to produce smaller executables?

You shouldn't be worried about the size of trivial programs: the
overhead is additive, so it will be small relative to a size of a
real-life program.  Also, most of the 148KB is debug info that can be
stripped if you link with -s switch (but then you lose the ability to
debug the program).

The DJGPP FAQ list (v2/faq230b.zip from the same place you get DJGPP)
explains in section 8.14 how to make your programs smaller.

- Raw text -


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