libgcj.a smaller but compiled binary for win32 identical
patrick roussel
mirianet@gmail.com
Thu Nov 26 09:54:00 GMT 2009
Hi,
Inspired by Andrew Haley scripts, I built my own libgcj.a library with
the following method :
- Extracting all objects (.o) from libgcj.a with "ar -x" command and
classify them with "nm" command
- Building a new libgcj.a with "ar" command (option r or q) following
by "ranlib" by adding some members and not others : For instance I
didn't add objects from javax package except those from
javax.security, I didn't add others some objects like
"LocaleInformation_X_Y.o" from gnu.java.locale....
Resulting I got a smaller libgcj.a in size and my gcj compilation was
successfully (I have checked the new library compilation with a basic
program like "Hello World").
But what seems me strange it is that the compiled program size is the
same with the original libgcj.a and with my custom libgcj.a which size
is smaller !
Perhaps It is normal, I don't know how gcj works, but for me it looks strange.
Can any one explain me this (strange !) thing ?
PS : My builts are under win32 with mingw
--
PAR Mirianet
More information about the Java
mailing list