Message-Id: <200007140856.LAA04928@mailgw1.netvision.net.il> Date: Fri, 14 Jul 2000 11:56:45 +0200 To: "Michael Citron" X-Mailer: Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5b From: "Eli Zaretskii" CC: djgpp AT delorie DOT com In-reply-to: (michaeljnc AT earthlink DOT net) Subject: Re: How to reduce .EXE file size using RHIDE? References: 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 Precedence: bulk > From: "Michael Citron" > 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.