Re: Make libgcj.so.9 smaller

Marco Trudel <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
Andrew Haley wrote:
> ffileppo wrote:
> 
>> I compiled gcj for arm using gcc 4.3.0
>> I see that libgcj.so.9 is very big (about 72MB).
> 
> 30M after you strip debuginfo.
> 
>> Which options should I use when configuring to make libgcj.so.9 smaller? I'd like to disable net,awt ecc..
>> Is there a list of option available for this purpose?
> 
> It's a difficult problem or it would have been done already.  Parts
> of the essential java code (such as the class loader) depend on
> networking, for example.  The Java library is interconnected in
> all sorts of interesting places.
> 
> David Daney has done some work in this area, such as reducing
> the size of the reflection data.

There's micro-libgcj [1] and I also posted multiple times the 
description of the procedure I use in JNC [2]. It allows users excluding 
AWT/Swing or JCE if they want to.


Marco

[1] http://ulibgcj.sourceforge.net/
[2] http://jnc.mtsystems.ch

> Andrew,
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.