Date: Wed, 27 Aug 1997 19:23:42 +0300 (IDT) From: Eli Zaretskii To: Darren Grant cc: djgpp AT delorie DOT com Subject: Re: Optimizing target size In-Reply-To: <3403E027.670@xl.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.