From: Li junsong <ljs.darkfish@gmail.com>
To: Andrew Pinski <pinskia@gmail.com>
Cc: java@gcc.gnu.org
Subject: Re: Why GCJ won't load my plugin when compiling bytecode?
Date: Fri, 09 Sep 2011 21:57:00 -0000 [thread overview]
Message-ID: <CA+kGxtPSamEp9_K6dBPpvZZ00ava=Rpn0L2+cNEN4AHnWRRopg@mail.gmail.com> (raw)
In-Reply-To: <CA+=Sn1kLERJK0rL269UMSaO=Z4y=YkforKKgOcPspdJXBPGiGQ@mail.gmail.com>
On Fri, Sep 9, 2011 at 11:03 PM, Andrew Pinski <pinskia@gmail.com> wrote:
> On Fri, Sep 9, 2011 at 1:56 PM, Li junsong <ljs.darkfish@gmail.com> 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
next prev parent reply other threads:[~2011-09-09 21:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-09 20:57 Li junsong
2011-09-09 21:03 ` Andrew Pinski
2011-09-09 21:57 ` Li junsong [this message]
2011-09-09 22:24 ` Bryce McKinlay
2011-09-09 23:03 ` Li junsong
2011-09-12 0:49 ` Alan Eliasen
2011-09-12 0:54 ` Mark Mielke
2011-09-12 9:32 ` Bryce McKinlay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+kGxtPSamEp9_K6dBPpvZZ00ava=Rpn0L2+cNEN4AHnWRRopg@mail.gmail.com' \
--to=ljs.darkfish@gmail.com \
--cc=java@gcc.gnu.org \
--cc=pinskia@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).