This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: Fibonacci and performance
- To: <tromey at redhat dot com>, "Java Discuss List" <java at gcc dot gnu dot org>
- Subject: RE: Fibonacci and performance
- From: "Anthony Green" <green at redhat dot com>
- Date: Fri, 27 Apr 2001 07:51:30 -0700
- Reply-To: <green at redhat dot com>
Tom wrote:
> Looking at the generated assembly, the only real difference I see is
> the call to _Jv_InitClass in Fib.fib(). In this particular case we're
> paying a pretty big penalty.
>
> I wonder if inlining the "already initialized" check from
> _Jv_InitClass would help or hurt (due to increased code size).
If the assembly code really is similar, we can test this theory by simply
adding _Jv_InitClass-like calls or inlined equivalent to the C++ code.
AG