This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building GCC 4.3.0 on Cygwin...


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@cs.nyu.edu | igor@watson.ibm.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]