www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/15/04:00:33

From: Ian Chapman <ichapman AT nt DOT com>
Newsgroups: comp.os.msdos.djgpp,sparhawk AT eunet DOT at
Subject: Re: Linking just the necessary parts of a library
Date: Mon, 13 Jul 1998 13:16:52 -0400
Organization: Bell Northern Research
Lines: 26
Message-ID: <35AA4104.ED0C4A93@nt.com>
References: <6o4k4g$7q8 AT news DOT uni-leipzig DOT de>
NNTP-Posting-Host: bcarib90.bnr.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi Gerard,
	I think that Raul is under the false impression that his .exe is big
because all the lib is in it.  That is he is only using the cosine from
the libmath.a so how does he get rid of arctan, log, sqrt, etc!

Raul,
	the libxxx.a files are an archive of a pile of .o files that is log.o,
cos.o, sine.o sqrt.o all zipped into an archive a bit like pkzip.  The
linker only pulls out what it needs to make your .exe work.

		Regards Ian.  


Raul Kompaß wrote:
> 
> Hello out there,
> 
> Is there a linker, that is capable of extracting just the functions
> i need out of, say liballg.a ? Or another simple means to achieve this
> without the need to extract the necessary source code?
> 
> Raul

- Raw text -


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