question about ecj integration

Tom Tromey tromey@redhat.com
Wed Mar 8 00:05:00 GMT 2006


>>>>> "David" == David Daney <ddaney@avtrex.com> writes:

David> Would it make any sense to add one or more hooks in the internals of
David> ecj where we could add extra gcj/libgcj specific optimizers like
David> StringBuffer optimizations?

Honestly, I hadn't considered this possibility.  Yeah, this would
work, at least for the StringBuffer case.

David> Or is it preferable to do it as a separate pass over the byte code
David> before compiling with jc1?

David> Or would it be better to just compile with jc1 and do the
David> optimizations there?

Of the latter two choices I think it is better to do the work in jc1.
In some cases it might not matter, but some things may require
changing representations in a way not supported by the .class file
format.

Tom



More information about the Java mailing list