Date: Sun, 5 Jan 1997 17:29:54 +0200 (IST) From: Eli Zaretskii To: Matthew Kennedy cc: djgpp AT delorie DOT com Subject: Re: How can I reduce the compiled executable size? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sat, 4 Jan 1997, Matthew Kennedy wrote: > Now, it I compare the file sizes of with.exe and without.exe, > > 1-04-97 22:46 100,205 with.exe > 1-04-97 22:47 61,446 without.exe > > > POINT!!!: Why does the addition of gotoxy(1,1) add 40k of code the the > size of the executable?? In assembler such an addition would be about 10 > bytes! > > How can I stop the whole conio (I assume) library from being linked in???? Sorry, you can't. Conio functions are all tightly interconnected and are all defined on a single source file. If you only need to set the cursor position, use the `ScreenSetCursor' library function instead of `gotoxy', which will only link in that single function (which `gotoxy' calls internally). OTOH, if you really need the rest of conio functions, you usually need most of them anyway.