This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: question about ecj integration


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]