From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14076 invoked by alias); 3 Aug 2009 11:14:37 -0000 Received: (qmail 14065 invoked by uid 22791); 3 Aug 2009 11:14:36 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from qw-out-1920.google.com (HELO qw-out-1920.google.com) (74.125.92.145) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 03 Aug 2009 11:14:31 +0000 Received: by qw-out-1920.google.com with SMTP id 5so1565713qwc.14 for ; Mon, 03 Aug 2009 04:14:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.99.208 with SMTP id v16mr1017005qcn.75.1249298069197; Mon, 03 Aug 2009 04:14:29 -0700 (PDT) Date: Mon, 03 Aug 2009 11:14:00 -0000 Message-ID: <898285d30908030414sa2ff105yccd185ecea9e5ca5@mail.gmail.com> Subject: gcj compilation size. 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/msg00000.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 ?