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]

RE: Fibonacci and performance


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


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