X-Spam-Check-By: sourceware.org Date: Thu, 22 Mar 2007 11:32:52 -0400 (EDT) From: Igor Peshansky 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: References: <4602845D DOT 8020806 AT cwilson DOT fastmail DOT fm> <46029F82 DOT 1604112 AT dessent DOT net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/