X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: conio Date: 30 Jan 2004 08:50:37 GMT Organization: Aachen University of Technology (RWTH) Lines: 28 Message-ID: References: <40192b10$1 AT news DOT infonet DOT ee> <401a1180$1 AT news DOT infonet DOT ee> NNTP-Posting-Host: ac3b07.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1075452637 9224 137.226.33.205 (30 Jan 2004 08:50:37 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 30 Jan 2004 08:50:37 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "T?nu Aas" wrote: > Does linker link whole module while some function from this module used > ? Yes. > Then its wasting space by including functions not used by program. No --- because a properly designed library will have essentially only one function per module, or only put those together in a single module that you would always need either all of, or none. > If not then how it can include __gppconio_init because its not used > by any function in module. Impossible to tell without seeing your program. Try to cut it down to the minimal example and show that here, including the gcc commands you use to build it. Or pass the '-Wl,-verbose' option in your gcc link command, which will have the linker output enormous amounts of debug printouts showing you exactly what it's doing, and why. You'll want to redirect that to a file (--> DJGPP's "redir" utility). -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.