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]

Re: shriveling libgcj



Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
> > The main obstacle remaining is the 16MB libgcj.so.

> Well, it goes down to ~4MB stripped.

Oh rock on. I've been in the Java world for so long that my
familiarity with C linkers is totally substandard. I had completely
forgotten about stripped binaries.

Sweet... I now have it down to 1.2MB when stripped, 100% statically
linked (even libc, since my eventual target is mingw32), and
bzip2'ed. When I cut everything out of libgcj that I don't think I'll
need, I got a 660kb compressed binary (although it segfaults).


> >- If I use CNI only (no JNI), can I ditch jni.o?

> Sure, you'll probibly have to tweak libgcj though.

Oh -- does libgcj use jni internally? I thought it was all CNI.



> I think you'll find that, with the exception of the interpreter
> perhaps, the size of these is minimal compared to all the unneeded
> Java crap that gets linked though.

I agree -- I'm just trying to squeeze it for every last byte =) I'll
probably ditch name-finder anyways just because, as an ActiveX
control, there's really no meaningful console to print stack traces
onto.

Thanks again for your help!

  - a


-- 
If the Boston Tea Party happened today, our politicians would denounce
it as an act of Terrorism.


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