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: Converting a JAR into a gcj-statically-linked SO


On Jan 8, 2008 8:04 PM, David Daney <ddaney@avtrex.com> wrote:
> > So this means that I cannot compile a shared library which does not
> > depend on libgcj?
> >
>
> It might work on some targets.  It would  not work on a mips target.

How about ARM?

> > Any suggestions greatly appreciated.
> >
> Make sure it works with a shared libgcj before making large investments
> in linking statically.

As an alternative, I was thinking of stripping down libgcj unti its
size is acceptable. My Java language needs are pretty limited, so an
approach like micro-libgcj (although that seems to miss a few classes
I do need) seems feasible as well. It would just be nicer if the
compiler could do the stripping down, instead of me...
Would you recommend such an approach over the static linking?
Any down-sides (speed)?

Thanks again,

Matthijs


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