delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/27/12:27:53

Date: Wed, 27 Aug 1997 19:23:42 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Darren Grant <darn AT xl DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: Optimizing target size
In-Reply-To: <3403E027.670@xl.ca>
Message-ID: <Pine.SUN.3.91.970827192123.9184B-100000@is>
MIME-Version: 1.0

On Wed, 27 Aug 1997, Darren Grant wrote:

> I have written a C command-line util that links the Allegro library with
> a very small amount of my own code.  The target executable (in ms-dos)
> is huge!  (just under 300k)  What can I do to reduce the size of this?

This is explained in section 8.15 of the DJGPP FAQ list (v2/faq210b.zip 
from the same place you get DJGPP); please read it.

> Is the entire Allegro library being linked?

No, only the function that your program calls (and any functions called 
by those Allegro functions internally) are linked in.

- Raw text -


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