This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: help with gcj for embedded platform
- From: "Scott Gilbertson" <scottg at mantatest dot com>
- To: "Vladimir Levin" <vladimirl at wrx-ca dot com>, <java at gcc dot gnu dot org>
- Date: Thu, 25 Mar 2004 14:38:26 -0500
- Subject: Re: help with gcj for embedded platform
- References: <40633001.3090605@wrx-ca.com>
You typically only run one application in an embedded system, so the shared
library doesn't buy you anything. If that's the case, do a static build and
the size of your binary will be smaller than the dynamic binary plus the
library. You can also strip the executable if you don't mind losing
meaningful stack dumps when an exception occurs.
If you have more than one GCJ-compiled executable, you'd have to figure out
which objects in the library aren't used in your application and remove
them.
> Hello,
>
> I am trying to do a proof of concept that Java applications written with
> gcj can run on our embedded platform (Linux on Motoroal 855 with 16MB
> Ram total and about 3 MB allocated for Java environment + application).
> The default size of the gcj-3.3.3 libgcj.so is very large. Can someone
> help me with this matter or trimming the size of the shared library for
> use on an embedded platform?
>
> Vlad
>
>