[Bug libgcj/32619] -static-libgcj includes entire gnu classpath (>30MB executable from 95byte source)
woody77 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jul 4 19:22:00 GMT 2007
------- Comment #4 from woody77 at gmail dot com 2007-07-04 19:22 -------
Marco,
thanks for the pointer to JNC. I'm targeting an embedded platform, with only
32MB of storage, so reducing the classes needed is mandatory.
>From the size of the executable, it looked like the linker had just failed to
prune uncalled code. (since libgcj is ~30MB on it's own).
Is there a way to pull a report from the linker to determine what
methods/classes are left behind and which are included? I did a check with
strings and saw all sorts of classes that I'm sure I'm not using
(java.util.zip.ZipInputStream for instance).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32619
More information about the Java-prs
mailing list