delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/22/10:33:23

X-Spam-Check-By: sourceware.org
Date: Thu, 22 Mar 2007 11:32:52 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: Building GCC 4.3.0 on Cygwin...
In-Reply-To: <46029F82.1604112@dessent.net>
Message-ID: <Pine.GSO.4.63.0703221129330.22215@access1.cims.nyu.edu>
References: <Pine DOT OSF DOT 4 DOT 21 DOT 0703221042210 DOT 6067-100000 AT ax0rm1 DOT roma1 DOT infn DOT it> <4602845D DOT 8020806 AT cwilson DOT fastmail DOT fm> <46029F82 DOT 1604112 AT dessent DOT net>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Thu, 22 Mar 2007, Brian Dessent wrote:

> Charles Wilson wrote:
>
> [snip]
> > (2) the java runtime library is huge, and to even attempt to link it
> > as a DLL requires massive (>1GB) amounts of RAM.  I seem to recall
> > that this is due to inefficiencies in the way ld creates import
> > libraries, so perhaps some work in binutils may be necessary so that
> > normal humans with regular machines can build the java frontend and
> > runtimes...see the last bit of this message:
> > http://gcc.gnu.org/ml/gcc-patches/2006-12/msg00133.html
>
> Yeah, tell me about it:
>
> $ ls -l libgcj*
> -rw-r--r-- 1 brian None 2.9M Feb  3 01:07 libgcj-tools.a
> lrwxrwxrwx 1 brian None   18 Feb  3 01:07 libgcj-tools.la -> ../libgcj-tools.la
> -rw-r--r-- 1 brian None  960 Feb  3 01:07 libgcj-tools.lai
> -rw-r--r-- 1 brian None  93M Feb  3 01:07 libgcj.a
> lrwxrwxrwx 1 brian None   12 Feb  3 01:07 libgcj.la -> ../libgcj.la
> -rw-r--r-- 1 brian None  947 Feb  3 01:07 libgcj.lai
>
> That's a 93 megabyte static archive.

Yes, and the DLL won't be any smaller.  What I don't understand, however,
is why not split it into several static libs or DLLs?  Is there something
inherent in the GCC build/invocation procedure that prevents this from
happening?  The specs can certainly specify more than one default link
library...

This question is not Cygwin-specific, of course.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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