delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/13/15:38:10

From: Prashant TR <tr AT eth DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How to reduce .EXE file size using RHIDE?
Date: 13 Jul 2000 23:22:45 +0530
Organization: VSNL
Lines: 19
Message-ID: <m366q9rk7m.fsf@midpec.com>
References: <Bzlb5.62592$_b3 DOT 1827596 AT newsread1 DOT prod DOT itd DOT earthlink DOT net>
NNTP-Posting-Host: 203.197.177.56
X-Trace: news.vsnl.net.in 963548091 9720 203.197.177.56 (14 Jul 2000 04:14:51 GMT)
X-Complaints-To: postmaster AT news DOT vsnl DOT net DOT in
NNTP-Posting-Date: 14 Jul 2000 04:14:51 GMT
X-Newsreader: Gnus v5.7/Emacs 20.5
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Michael Citron" <michaeljnc AT earthlink DOT net> writes:

> 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?

DJGPP is used to write large programs. Or at least that's when you can
get the max. out of a compiler like this. There are several reasons
for the large size. They are all in the FAQ and workarounds are also
mentioned there.

ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2/faq230b.zip

And yes, you could use UPX to compress the EXE (http://upx.tsx.org).

-- 
Prashant TR <tr AT midpec DOT com>
Web: http://www.midpec.com/

- Raw text -


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