This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: Fibonacci and performance
- To: "Jeff Sturm" <jsturm at one-point dot com>, "Boehm, Hans" <hans_boehm at hp dot com>
- Subject: RE: Fibonacci and performance
- From: "Anthony Green" <green at redhat dot com>
- Date: Tue, 1 May 2001 22:18:55 -0700
- Cc: <tromey at redhat dot com>, "Java Discuss List" <java at gcc dot gnu dot org>
- Reply-To: <green at redhat dot com>
Jeff wrote:
> That could be a problem. It would be fine if m_l_f were initialized to
> zero.
The original implementation had it initialized to zero. Tom added what
seemed like a good optimization at the time (initialization from the Class
object). Is it true that all we need to do is to introduce some kind of
re-ordering barrier so that neither the compiler nor the hardware would
reorder these instructions?
AG