From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28417 invoked by alias); 26 Nov 2009 09:54:46 -0000 Received: (qmail 28406 invoked by uid 22791); 26 Nov 2009 09:54:45 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f215.google.com (HELO mail-fx0-f215.google.com) (209.85.220.215) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 26 Nov 2009 09:54:39 +0000 Received: by fxm7 with SMTP id 7so494216fxm.29 for ; Thu, 26 Nov 2009 01:54:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.87.35 with SMTP id p35mr3750152mul.75.1259229276310; Thu, 26 Nov 2009 01:54:36 -0800 (PST) Date: Thu, 26 Nov 2009 09:54:00 -0000 Message-ID: <6100d4200911260154h7f234898wa36513c1a38054d7@mail.gmail.com> Subject: libgcj.a smaller but compiled binary for win32 identical From: patrick roussel To: java@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2009-11/txt/msg00056.txt.bz2 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