Mail Archives: cygwin/2007/03/22/10:33:23
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 -