Mail Archives: djgpp/1997/01/05/10:41:20
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 -