To: me AT jenkinsdavid DOT demon DOT co DOT uk Cc: djgpp AT delorie DOT com Subject: Re: Size of .exe Why so BIG??? Message-ID: <19970221.175632.7567.3.fwec@juno.com> References: From: fwec AT juno DOT com (Mark T Logan) Date: Fri, 21 Feb 1997 17:50:08 EST On Fri, 21 Feb 1997 12:24:17 +0000 David Jenkins writes: >When I compile a simple code that just printfs "Hello World" the >executable is 79k in size. > >I've written a starfield using allegro and that is 197k. > >Is there some compiler switch to suppress the inclusion of unwanted >data >in the .exe??? > use gcc -s this gets rid of symbol data, but you will not be able to debug or profile the output code. You can also use 'strip' one of the GNU binutils. I've never used it, but I think it does something like removing unnecessary data from the .exe. I could be wrong about this. Good luck -Fwec