inter-class optimizations

Jeff Sturm jsturm@one-point.com
Thu Feb 19 16:39:00 GMT 2004


On Wed, 18 Feb 2004, Per Bothner wrote:
> > In theory this should allow inter-class inlining and nonstandard
> > calling interfaces (register passing)... does gcj do any of this?  I'm
> > using 3.3.2, but I could upgrade to something more recent if there's
> > an advantage.
>
> My guess is this will becomes more advantageous with the tree-ssa
> branch - which will probably become gcc 3.5 or 4.0.  Also,
> -fomit-frame-pointer is now the default (at least on x86).

The cgraphunit (aka unit-at-a-time) optimizers help too.  That'll be in
3.4.

Inter-class inlining works in 3.4 branch if you build with:

gcj -c -O3 *.java -o everything.o

Only final/static/private methods and constructors can be inlined that
way.  Maybe super invocations too.

Jeff



More information about the Java mailing list