This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: inter-class optimizations
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Per Bothner <per at bothner dot com>
- Cc: Adam Megacz <megacz at gcc dot gnu dot org>, <java at gcc dot gnu dot org>
- Date: Thu, 19 Feb 2004 11:39:14 -0500 (EST)
- Subject: 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