libgcj.a smaller but compiled binary for win32 identical

patrick roussel <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.