Mail Archives: djgpp/1999/07/26/09:21:19

Date: Mon, 26 Jul 1999 16:18:56 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Peter Korsgaard <jacmet AT kom DOT auc DOT dk>
cc: djgpp AT delorie DOT com
Subject: Re: makig tiny programs with djgpp
In-Reply-To: <MmNm3.723$>
Message-ID: <Pine.SUN.3.91.990726161614.22556C-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 26 Jul 1999, Peter Korsgaard wrote:

> Without debugging information the smallest
> programs I can make is still around 20k after packing - which is because
> libc and libgcc are linked onto the executable.

If you don't use any of the library functions, then only the startup code 
is linked from the libraries.  Without the startup code, your program 
won't be able to switch to protected mode and set up its execution 
environment (memory, code and data segments, etc.)  If you want to get 
rid of the startup code, you will need to write your own, stripped-down 
versions of it.

- Raw text -

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