delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/19/05:41:12

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <042701c170e7$6b20c2f0$b90806c0@vipin>
Reply-To: "vip" <vipin DOT aravind AT wipro DOT com>
From: "vipin aravind" <vipin DOT aravind AT wipro DOT com>
To: "Mohammad Saleem" <mosa AT enea DOT se>, <crossgcc AT sources DOT redhat DOT com>,
<cygwin AT cygwin DOT com>
References: <3BF78F05 DOT 4020003 AT enea DOT se>
Subject: Re: linking application with a library
Date: Mon, 19 Nov 2001 16:16:17 +0530
Organization: Wipro Technologies
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200

--------------InterScan_NT_MIME_Boundary
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I  think you  are  static linking  thats  why.  its a  choice  if you  want
to dynamically link  the  library in which case it would  have  stubs  which
does the getprocaddress  internally at runtime  while  the actual code
resides in the dll and hence  your  executeable code  would  become small in
size.
vipin

> Hi all,
>
> I am using h8300-hitachi-hms-gcc cross-complier for building my
application.
> I have a lib mylib.a (20 kb) which I want to link with my application.
> My application gets 20 kb bigger as soon as I link it with mylib.a
> without any function being called from mylib.a.
> It seems to me that I have built mylib.a so that the whole lib is linked
> during linking process even if no one method is being called.
> Now my question is which flag should I use to build mylib.a so that only
> those functions are linked which are being called.
> If no function is called then linking mylib.a shouldn't affect the size
> of my application.
>
> Thanks for help.
>
> regards
> /Mohammad
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>


--------------InterScan_NT_MIME_Boundary
Content-Type: text/plain;
	name="InterScan_Disclaimer.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="InterScan_Disclaimer.txt"

-------------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:mailadmin AT wipro DOT com and delete this mail
from your records.
----------------------------------------------------------------------------------------------------------------------


--------------InterScan_NT_MIME_Boundary
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--------------InterScan_NT_MIME_Boundary--

- Raw text -


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