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: help with gcj for embedded platform


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
>
>


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