TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Content-type:
TEXT/PLAIN; CHARSET=US-ASCII
Sender:
"Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Subject:
From:
Date:
Mon, 12 Mar 2001 09:53:19 +0000
In-Reply-To:
MIME-version:
1.0
Reply-To:
Parts/Attachments:
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
>to
>> >> 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.
>>
>
>No...

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.

John



********************************************************************
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.
********************************************************************

ATOM RSS1 RSS2