Mail Archives: djgpp/1996/07/21/07:13:06
> On Sat, 20 Jul 1996, Bruce Foley wrote:
>
> > BTW, I was wondering, when a program uses a function
> > from a library, does the whole library get linked, or just
> > the function you are calling?
>
> Only the function(s) you call are linked. Otherwise, every DJGPP program
> will be at least the size of libc.a, which is 530KBytes.
This is not quite right. The library consists of many object modules
and only required modules are linked in. But libc modules usually
contain only one library function.
- Raw text -