Xref: news2.mv.net comp.os.msdos.djgpp:5735 From: Charles Sandmann Newsgroups: comp.os.msdos.djgpp Subject: Re: Executable size Date: Mon, 08 Jul 1996 11:04:36 CDT Organization: Rice University, Houston, Texas Lines: 21 Message-ID: <31e13194.sandmann@clio.rice.edu> References: Reply-To: sandmann AT clio DOT rice DOT edu NNTP-Posting-Host: clio.rice.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp > DJGPP programs have about 40-50K or so of overhead which includes Wrong - a stripped hello world is only around 30K. The biggest problem is failure to use the "-s" switch. Replacing the other modules mentioned can drop the size to around 15K or so. > Could the glob code be a loadable module ? A 'dxe' ? > If it has libc code then it is no good as I think someone said libc > cannot be in a 'dxe'. I do not have the source code here to check. Since it does I/O it would be difficult to put it in a DXE. Look folks - if you want tiny programs, why are you using a 32-bit compiler? I can write a DJGPP image which does the "hello world" thing in a 2200 byte file by eliminating all the standard functionality except the stub, but what's the purpose? For that matter, just write in DJASM if you insist on a tiny program written with the DJGPP tools ... The extra 25K or so of overhead is largely in modules which will get called anyway when writing a real program which accesses files, etc, so I doubt any real program over 60K or so will be noticeably bigger.