delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/05/10:41:20

Date: Sun, 5 Jan 1997 17:29:54 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Matthew Kennedy <q9522772 AT helios DOT usq DOT edu DOT au>
cc: djgpp AT delorie DOT com
Subject: Re: How can I reduce the compiled executable size?
In-Reply-To: <Pine.HPP.3.95.970104224707.1068B-100000@helios.usq.edu.au>
Message-ID: <Pine.SUN.3.91.970105172429.22565J-100000@is>
MIME-Version: 1.0

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. 

- Raw text -


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