comp.lang.ada
 help / color / mirror / Atom feed
From: nabbasi@earthlink.net.NOSPAM
Subject: Hotspot. Dynamic compilers "better" than static one?
Date: 1998/05/30
Date: 1998-05-30T00:00:00+00:00	[thread overview]
Message-ID: <6kocc1$d80@drn.newsguy.com> (raw)
In-Reply-To: 6knj4m$odp$1@nnrp1.dejanews.com


from comp.java.programmer :

In article <6knj4m$odp$1@nnrp1.dejanews.com>, pgpagel@yahoo.com says...
>
>Check it out (well-written article and good links):
>
>http://www.developer.com/journal/techfocus/052598_hotspot.html
>

thanks for the pointer.

This below is from http://www.javaworld.com/jw-03-1998/jw-03-hotspot.html
which is a link from above link:

>Runtime information
>The second major advantage of dynamic compilation is the ability to take into
>account information that is known only at runtime. Again, the details are
>proprietary. But it's not hard to
>imagine, for example, that if a method is invoked in a loop that has an upper
>>index value of 10,000, it's an immediate candidate for optimization. If, on the
>>other hand, the upper loop
>index value is 1, the optimizer will know to ignore that method and let it be
>>interpreted. Because a static compiler has no way of knowing for sure what the
>>values might be, it can't make such judgements.

I think the above statment is all bogus and hand waving.

a static compiler has all the time in the world to do optimization. after all,
it is done before run-time.  It does not matter if the static compiler is
optmizing too many things. some which might turn out at run time that they are
not needed. so, I can wait few more seconds for the program to compile, and 
I am willing to live with an un-necceserarly "over-optimized" machine code.

Also, this dynamic compiler, inthe above example,  needs to check for the 
upper limit every time, may be one time it is called with upper limit of 
1. but next time it is not.

I just do not see how this example makes dynamic compiler somehow better than
static compilers. may be someone can comes up with a better example.

Nasser

------------------
Spam free Usenet news http://www.newsguy.com




       reply	other threads:[~1998-05-30  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <6knj4m$odp$1@nnrp1.dejanews.com>
1998-05-30  0:00 ` nabbasi [this message]
1998-05-30  0:00   ` Hotspot. Dynamic compilers "better" than static one? Roedy Green
1998-05-30  0:00     ` Andi Kleen
     [not found]       ` <dewar.896629645@merv>
1998-06-02  0:00         ` Dr Richard A. O'Keefe
1998-06-02  0:00           ` Lieven Marchand
1998-06-01  0:00     ` Norman H. Cohen
1998-06-03  0:00       ` John Volan
1998-06-05  0:00         ` Norman H. Cohen
1998-06-08  0:00           ` John Volan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox