From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1617 invoked by alias); 9 Sep 2011 21:57:21 -0000 Received: (qmail 1589 invoked by uid 22791); 9 Sep 2011 21:57:20 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_GC X-Spam-Check-By: sourceware.org Received: from mail-yi0-f47.google.com (HELO mail-yi0-f47.google.com) (209.85.218.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Sep 2011 21:57:06 +0000 Received: by yia28 with SMTP id 28so1310082yia.20 for ; Fri, 09 Sep 2011 14:57:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.52.230 with SMTP id w6mr3226957pbo.95.1315605424761; Fri, 09 Sep 2011 14:57:04 -0700 (PDT) Received: by 10.68.55.98 with HTTP; Fri, 9 Sep 2011 14:57:04 -0700 (PDT) In-Reply-To: References: Date: Fri, 09 Sep 2011 21:57:00 -0000 Message-ID: Subject: Re: Why GCJ won't load my plugin when compiling bytecode? From: Li junsong To: Andrew Pinski Cc: 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: 2011-09/txt/msg00002.txt.bz2 On Fri, Sep 9, 2011 at 11:03 PM, Andrew Pinski wrote: > On Fri, Sep 9, 2011 at 1:56 PM, Li junsong wrote: >> Does that mean that GCJ doesn't support -C and -fplugin at the same time? > > Because the source to byte-code conversion is done by ECJ (Eclipse's > java compiler) and not really done by a GCC front-end. > Thanks, > Andrew Pinski > Thanks, Andrew. I want to do some optimization to reduce the allocation of java objects. The reason why I need to compile java source code to .class file is that I need stack information to see the information about java objects allocation. The only way (I know) to measure results of the optimization is to use Sun Java VM, which can produce profiles at runtime. I chose gcj to write plugin to do optimization. So I need its .class files output, but not its binary code. If I do not get it wrong, it means that If I want to do such optimization and measure the outcome, I have to look for other compilers, ( since GCC plugins won't work ) right? Thanks, J. Li