Thoughts about static linking and reducing size of binaries
Patrick Tullmann
tullmann@cs.utah.edu
Thu Mar 15 15:44:00 GMT 2001
Bryce McKinlay wrote:
> Yeah - without compiler support I think it would be quite hard to do
> this. If you wanted to, say, omit the java.security package entirely
> you'd have to have two versions of java.lang.Class, ClassLoader, and
> everything else that referenced it, or else have #ifdefs (yuck) in the
> java code.
I think IBM has a product that will "trim the fat" from a whole Java
application (e.g., as the last step before distribution).... JAX seems
to be the name:
http://www.alphaworks.ibm.com/aw.nsf/frame?ReadForm&/aw.nsf/techmain/C43E00E9A8C0FBB58825671B0065F168
It might be interesting to see what the size of a gcj-compiled JAX'd
application is. If JAX can be taught to root through all of the
standard libraries it may do mostly the right thing...
-Pat
----- ----- ---- --- --- -- - - - - -
Pat Tullmann tullmann@cs.utah.edu
Not many people realize just how well known I am -- Anonymous
More information about the Java
mailing list