TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Reply To:
Mon, 12 Mar 2001 09:53:19 +0000
TEXT/PLAIN (51 lines)
>[log in to unmask] wrote:
>> >[log in to unmask] wrote:
>> >>
>> >> [someone] wrote:
>> >>
>> >> >I don't agree with this since the latest JVMs essentially compile
>> >> >to native code at runtime anyway.
>> >>
>> >> Err - surely that means it is going to take longer if it has to compiler
>> >> native code at runtime ?
>> >
>> >For quick in-and-out programs it would take longer, but once the same
>> >execution path has been traversed a few times, the cost of the JIT
>> >compilation has been recovered.
>> ... until the next time the program is executed.

Err - Yes... See below.

>Take a hypothetical program written in Java that, when wholly run as
>interpreted byte code, requires 30 CPU minutes to execute.
>When JIT compiled to native code, it may require only 2 CPU minutes, with
>JIT compilation requiring only a few seconds of that time.
>Whether you run it once or a dozen times, each run will require the same
>amount of execution time.

The point I was making was that you would have to perform the JIT compilation
every time you run the program, which is what you are also saying here, unless
you're suggesting that the JIT compiler also saves the compiled version which,
as far as I know, is not the case.


This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender
immediately by telephoning +44(1252) 373232. You should not copy it
or use it for any purpose nor disclose or distribute its contents to
any other person.