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: inter-class optimizations


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


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