This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Binary size of statically linked java application
Marco Trudel writes:
> Lehner, Michael wrote:
> > Hi,
> >
> > I am using java on an embedded system, for that reason, memory is very
> > low. This is one of the reasons why I am using statically linking. But
> > this doesn't solve my problems, an unstripped "hello world" application
> > still needs more than 20MB and stripping it only reduces it's size to
> > about 9MB. I read about guys getting it down to 300-500kB,
That's extremely tight. It could be done, but such severe pruning is
going to require you to rip out most of the core library support.
There's no big technical reason to prevent this, it's just a matter of
firing up a debugger, looking at what gets used, and removing stuff
you don't need. You could even run without a garbage collector if you
wanted.
Andrew.