X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Tõnu Aas" Newsgroups: comp.os.msdos.djgpp References: <40192b10$1 AT news DOT infonet DOT ee> Subject: Re: conio Date: Fri, 30 Jan 2004 10:10:36 +0200 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: ids.ids.ee Message-ID: <401a1180$1@news.infonet.ee> X-Trace: news.infonet.ee 1075450240 ids.ids.ee (30 Jan 2004 10:10:40 +0200) Organization: INFONET.EE To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > > Is it possible to run djgpp program without conio module ? > > In djdev there is __gppconio_init in .ctor section. > Being in the constructors section of some .o file in libc.a doesn't > all by itself cause a function to be included in your linked program. > That only happens if you cause the relevant module to be linked in, > e.g. by using one of its functions. > > Do you have actual evidence that this function got included in one of > your programs which didn't use or similar functions? No. I am just thinking to throw conio out of my program. And I have not so good understanding how linker works. So I am asking here. Does linker link whole module while some function from this module used ? Then its wasting space by including functions not used by program. If not then how it can include __gppconio_init because its not used by any function in module. Tõnu.