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: Getting started with merged GCJ


Tom Tromey wrote:
Oops... I think I forgot to CC the list on the first try.

"Jim" == Jim Mayer <jim@pentastich.org> writes:

Jim> Caused by: java.lang.ClassNotFoundException: Jim> org.objectweb.asm.ClassVisitor not found in

Jim> I made the "tools.zip" by running:
Jim>     zip -r /opt/gcc-bootstrap/lib/tools.zip gnu
Jim> from the "trunk/libjava/tools/classes" directory.

You also need the classes from trunk/libjava/tools/asm/

Jim> I was happy to see my little "Generic World" program run, though I was a
Jim> bit shocked at the 41 megabytes (using -static-libgcj, 13 megabytes
Jim> stripped) executable file:

Yeah, -static-libgcj can really hurt.

13M ... I don't know whether that is the expected size or not.  I
basically never make or look at static executables.

Yes, it is. Remove the gui stuff and you're at about 8mb. Remove javax.crypto stuff and you're at about 6mb.
Pack it (e.g. upx) and you're at about 2.5mb...


Gcj 4.3 static binaries are at about 2mb bigger than gcj 4.2 binaries. The numbers above are from 4.3...


Marco



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