From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19979 invoked by alias); 3 Aug 2009 11:26:03 -0000 Received: (qmail 19970 invoked by uid 22791); 3 Aug 2009 11:26:03 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-qy0-f195.google.com (HELO mail-qy0-f195.google.com) (209.85.221.195) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 03 Aug 2009 11:25:59 +0000 Received: by qyk33 with SMTP id 33so4217051qyk.0 for ; Mon, 03 Aug 2009 04:25:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.81.144 with SMTP id x16mr1050825qck.69.1249298756842; Mon, 03 Aug 2009 04:25:56 -0700 (PDT) Date: Mon, 03 Aug 2009 11:26:00 -0000 Message-ID: <898285d30908030425s1c37b93bja511882926ff3354@mail.gmail.com> Subject: gcj compiled object file size is big From: abhishek desai To: java@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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-08/txt/msg00001.txt.bz2 Hi I have a simple HelloWorld.java file which prints data to screen. When compiled to a .class file the size is 469 bytes. When the same file when compiled to an object file, the size is 1420 bytes. The difference is much bigger if there are lots of java files. Can anyone please explain why there is such a big difference between the two sizes and is there a way to reduce the size of the compiled object file ?