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: Shrinking/stripping libgcj for superfluous "classes"


Martin Egholm Nielsen writes:
 > > Martin> In case I don't want to have my embedded application static
 > > Martin> linked, is there a way to strip the libgcj for "classes" I
 > > Martin> certainly do not use - e.g. "java.awt.*", "javax.swing.*",
 > > Martin> etc.?
 > > Tom> Right now, edit the Makefile and rebuild.  Look back through the
 > > Tom> list archives, this topic has come up a few times recently.
 > Ok, that's a possibility :o)
 > I was hoping it might be possible using a tool similar to "strip" that 
 > worked directly on the libgcj.so-file?!

That's hard, because in most cases there is no direct reference to a
method.  Instead, each instance of Class has a pointer to its vtable,
and clients refer to methods by a vtable offset.

Andrew.


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