delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/01/30/04:45:18

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
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: <bvd5st$908$2@nets3.rz.RWTH-Aachen.DE>
References: <40192b10$1 AT news DOT infonet DOT ee> <bvbgr2$mlk$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <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" <tonu AT ids DOT ee> 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.

- Raw text -


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