Re: Why GCJ won't load my plugin when compiling bytecode?

Li junsong <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <CA+kGxtPSamEp9_K6dBPpvZZ00ava=Rpn0L2+cNEN4AHnWRRopg@mail.gmail.com>
On Fri, Sep 9, 2011 at 11:03 PM, Andrew Pinski <[email protected]> wrote:
> On Fri, Sep 9, 2011 at 1:56 PM, Li junsong <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.