This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/32619] -static-libgcj includes entire gnu classpath (>30MB executable from 95byte source)
- From: "woody77 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jul 2007 19:22:45 -0000
- Subject: [Bug libgcj/32619] -static-libgcj includes entire gnu classpath (>30MB executable from 95byte source)
- References: <bug-32619-14796@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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