This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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: Minimal libjava for embedded applications?


On Thu, Feb 17, 2005 at 08:03:32AM +0100, Martin Egholm Nielsen wrote:
> Hi Joshua,
> 
> >Joshua> I was wondering if there has already been any work into making
> >Joshua> a minimal libjava for use with gcj which only provides the
> >Joshua> bare minimum necessary to get a basic application running.
> >Nothing formal, though it has been talked about a lot.
> >I know some other users omit various parts of the library from the
> >build, for instance modifying the makefiles to omit all the AWT,
> >Swing, etc, code.
> "Honny I shrunk the libs":
> http://gcc.gnu.org/ml/java/2004-07/msg00149.html
> 
> Basically I modified the "Makefile.in" for libjava to contain only the 
> stuff I needed, ran the special automake version Michael Koch refers to 
> in that thread, and rebuild libgcj.so. That made my libgcj shrink about 
> 50%, and after "strip"'ing it, it was about 15% of the original size.

Note that you have to use automake 1.9.3 (not newer) for current CVS
HEAD.


Michael


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