about non-compatible optimization (was: Re: patch to bring java vtables closer to g++ abi conformance)
Thu Jan 24 09:03:00 GMT 2002
>>>>> "Tuomas" == Tuomas Leikola <firstname.lastname@example.org> writes:
Tuomas> this leads to another issue, is it planned that gcj would
Tuomas> support "closed world" optimizations?
As far as I know nobody is working on it. I think it would be a
Tuomas> but compiler can "notice" many cases like this, like
Tuomas> Vector a = new Vector();
Tuomas> while (a.size() < 10)
Tuomas> the dynamic invocations could be avoided.
Type-based optimizations like this are one thing I hope to get out of
the `ast' (tree-based optimization) work being done. Another
optimization in this category is removing redundant cast checks. I've
looked at the ast code a little, but I haven't done any hacking on it
More information about the Java