delorie.com/archives/browse.cgi | search |
From: | "Damian Yerrick" <mail DOT me DOT at DOT your DOT own DOT risk AT pineight DOT 8m DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Why the executables r so big ???? |
Date: | Wed, 15 Sep 1999 07:46:37 -0500 |
Organization: | Rose-Hulman Institute of Technology |
Lines: | 51 |
Message-ID: | <7ro4j7$e0o$1@solomon.cs.rose-hulman.edu> |
References: | <c_LD3.2608$_3 DOT 44552 AT news DOT tpnet DOT pl> |
NNTP-Posting-Host: | yerricde.laptop.rose-hulman.edu |
X-Trace: | solomon.cs.rose-hulman.edu 937399719 14360 137.112.205.146 (15 Sep 1999 12:48:39 GMT) |
X-Complaints-To: | news AT cs DOT rose-hulman DOT edu |
NNTP-Posting-Date: | 15 Sep 1999 12:48:39 GMT |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2314.1300 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Snowman <idzy AT friko5 DOT onet DOT pl> wrote in message news:c_LD3.2608$_3 DOT 44552 AT news DOT tpnet DOT pl... > HELP HELP > Im using DJGPP. > And I don't understand while the files that I compile are so big . > When I compile for example this small source code > (about 40bytes): A DJGPP EXE is a stub plus a COFF. The stub handles going into protected mode and loading the COFF. It really is overkill for a hello program: > main() should be int main(void) to comply with ANSI C > { > printf("Hello"); > return 0; > } > > The exe file is over 100Kb Big . Why ???? > (I'm not using the Allegro libary or anything) Half of a typical program is debugging symbols. Did you strip them out with the strip command? It should drop to 40 kilobytes. DJP (see the FAQ) should shrink it further. > When I look at some other peoples programms > examp.:" DosArena." http://pineight.webjump.com > Its just about 200Kb > and The source code was really long. http://www.rose-hulman.edu/~yerricde/download.html > I also made a simple game (using Allegro), > and the exe-file is over 700Kb heavy. DOSArena is slightly over a megabyte unstripped and uncompressed. UPX, the Ultimate Packer for Executables, strips and compresses your binaries in one step. It can also make your Windows 9x programs a lot smaller. http://www.nexus.hu/upx/ Damian Yerrick
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |