This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: Fibonacci and performance
- To: "Per Bothner" <per at bothner dot com>, <tromey at redhat dot com>
- Subject: RE: Fibonacci and performance
- From: "Anthony Green" <green at redhat dot com>
- Date: Fri, 27 Apr 2001 10:25:28 -0700
- Cc: "Java Discuss List" <java at gcc dot gnu dot org>
- Reply-To: <green at redhat dot com>
Per wrote:
> What I forgot was that we do the Jv_InitClass at the start of the
> called method, not at the call site. This saves code space, but
> it makes it harder to optimize the call away when it is unneeded.
> We might re-consider this decision if/when we get smarter about
> initialization.
Andrew Haley's suggestion from a while back was to implement two
entry-points into a method (with and without _Jv_InitClass).
I don't know if GCC's infrastructure supports this yet.
AG