delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/08/06/14:45:50

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: rugxulo AT gmail DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: file gets too 59 Ko.
Date: Mon, 06 Aug 2007 18:36:57 -0000
Organization: http://groups.google.com
Lines: 38
Message-ID: <1186425417.392435.133140@r34g2000hsd.googlegroups.com>
References: <S7Qsi.25931$le4 DOT 85630 AT wagner DOT videotron DOT net>
<200708040102 DOT l7412GrG012331 AT envy DOT delorie DOT com>
NNTP-Posting-Host: 65.13.115.246
Mime-Version: 1.0
X-Trace: posting.google.com 1186425418 14226 127.0.0.1 (6 Aug 2007 18:36:58 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Mon, 6 Aug 2007 18:36:58 +0000 (UTC)
In-Reply-To: <200708040102.l7412GrG012331@envy.delorie.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: r34g2000hsd.googlegroups.com; posting-host=65.13.115.246;
posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
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

On Aug 3, 8:02 pm, DJ Delorie <d DOT  DOT  DOT  AT delorie DOT com> wrote:
> > I am compiling a 40 lines tee exe and it gets too 59 Ko.
> > How do I reduce this?
>
> http://www.delorie.com/djgpp/v2faq/faq8_14.html

Just for the record (although it's probably obvious), that UPX link is
broken:   http://upx.sf.net works (currently 3.01)
"--ultra-brute" (kinda slow) works best for DJGPP stuff (76 passes,
LZMA support).

Also, the mention of "-O2" is probably an old reference, too, since
fairly newer GCCs all support "-Os" (optimize for size).

Jean Pierre,
    If you just need ANSI C compatibility (without the POSIX
compatibility), there are various other C compilers that will compile
smaller binaries:   OpenWatcom, old Turbo C/C++ for DOS, Pacific C
(yuck), CC386 (32-bit only), etc.

And for old, 16-bit, mostly K&R-ish C, you can use Micro-C or BCC/
Dev86 or Small C, Desmet C, etc. (Oh, and Digital Mars targets DOS at
least, but needs Win32 for the compiler).

Sphinx C-- is kinda C-ish and outputs pretty small stuff, too.

And there's always HXRT (partial Win32 emulation), which you can use
with some Win32 binaries (but that slightly negates any size savings,
IMO).

Hope this helps (and e-mail me if you need links to any of these
things.)

P.S. You can get a copy of FreeDOS' tee for DOS from here:
(teex.zip, tees.zip)

http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/pkgs/

- Raw text -


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