This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: ARM support
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Geert Bevin <gbevin at uwyn dot com>
- Cc: java at gcc dot gnu dot org
- Date: Sat, 28 Jun 2003 18:32:20 -0400 (EDT)
- Subject: Re: ARM support
On 28 Jun 2003, Geert Bevin wrote:
> Is it possible to tune down the space requirements of GCJ? Currently a
> stripped version of libgcj.so.3.0.0 takes about 8MB. That might be a bit
> big for small embedded devices.
This comes up quite often. Sadly, the Java runtime is bloated and heavily
interdependent. A simple "Hello, World" program tends to load/initialize
hundreds of classes whether you use Sun's JRE or gcj.
Probably the best solution for embedded applications would be J2ME
support in libgcj, whatever that entails. I'm not aware of anyone working
on it.
Right now you can use static linking, though it doesn't always work
correctly (it will omit classes loaded by reflection). The current lower
bound on executable size seems to be around 1MB when linked with -static.
Jeff