Andrea Aime <andrea.aime@aliceposta.it> writes:
Hi Adam, I'm looking for a way to reduce the size of a statically
linked executable generated by gcj and people on the gcj lists say
you are the one to contact. See the thread at:
http://comments.gmane.org/gmane.comp.gcc.java.devel/13001.
Ah yes, that was this thing called NanoGoat. It did require a bit of
fidgeting; due to native methods inside libgcj you'd always have to
"forcibly include" a few classes that it couldn't figure out were
reachable.
Ultimately I figured out that it was better to replace unreachable
methods with a tiny stub (just throw an error) than actually remove
the methods and bludgeon the linker into doing my bidding.
The guy you *really* want to talk to is Brian "Bytecode" Alliet
(cc'd), who really took the concept to the next level with gcclass:
http://darcs.brianweb.net/gcclass/