public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
* libgcj.a smaller but compiled binary for win32 identical
@ 2009-11-26  9:54 patrick roussel
  0 siblings, 0 replies; only message in thread
From: patrick roussel @ 2009-11-26  9:54 UTC (permalink / raw)
  To: java

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-26  9:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-26  9:54 libgcj.a smaller but compiled binary for win32 identical patrick roussel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).