To: sly AT aussie DOT net Cc: djgpp AT delorie DOT com Subject: Re: Trimming program size Message-ID: <19970227.220111.7167.1.fwec@juno.com> References: <01bc2468$540f0340$8c081ecb AT sly> From: fwec AT juno DOT com (Mark T Logan) Date: Thu, 27 Feb 1997 21:55:31 EST On 27 Feb 1997 05:36:23 GMT "Sly" writes: >I am (slowly) developing a game using the Allegro library. I was >wondering >whether it would be possible to be able to trim the library when the >program is ready for general distribution. That is, remove any unused >sections, like video card specific drivers (my program just uses >Mode-X >resolutions) and any other sections not required. Would this be >advantageous, or just too difficult to contemplate? > I'm sure Shawn will reply to this message too, but I'll put my 2 cents in anyway. Since allegro is distributed with all the sources, all you have to do is link in only the object files which you need. For example, if you use FLIC routines, link flic.o (or whatever the exact name is) with your executable. I am sure you will need to make certain that you have the neccesary headers included. Note that this is my impression of how to do it. There may be other issues which I am not aware of. I'm sure Shawn will correct me if I'm wrong. -Fwec