delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/08/13:16:23

Xref: news2.mv.net comp.os.msdos.djgpp:5735
From: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
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: <m0udG0t-001kAaC AT desertoak DOT awa DOT com DOT au>
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.

- Raw text -


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