Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Misc > P-Code, JVM and...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 14 of 20 Topic 708 of 811
Post > Topic >>

P-Code, JVM and IL (was: Translating an embedded C algorithm)

by "Chris Burrows" <cfbsoftware@[EMAIL PROTECTED] > Jan 20, 2007 at 10:55 AM

"Marco van de Voort" <marcov@[EMAIL PROTECTED]
> wrote in message 
news:slrner1omm.hhg.marcov@[EMAIL PROTECTED]
> On 2007-01-19, Jonas Maebe <Jonas.Maebe@[EMAIL PROTECTED]
> wrote:
>>
>> By no means all Pascal compilers do this. I don't know about embedded
>> ones, but of the regular ones at least Free Pascal, GNU Pascal, Delphi
>> nor Turbo Pascal use P-Code in any way. They all generate native code.
>
> (While Delphi in the .NET flavour generates IL and Component Pascal
(which
> afaik is more an Oberon) generates JVM and IL, they are at least not
> exactly traditional Pascal)
>

While Delphi.NET is far more than J&W Pascal, it can still be used to
write 
traditional Pascal software to the extent that Win32 Delphi can. Yes you
are 
right, Component Pascal is a superset of Oberon-2.with extensions suited
to 
the implementation of 'component' software.

Be careful not to liken .NET IL too closely with Java's JVM and ETH's 
P-code.  All three are similar concepts i.e. an 'intermediate language' 
representation of the source code. However, the primary difference is that

IL was designed from the ground up to be compiled to native code before 
execution, whereas Java (via the JVM) and P-code were primarily designed
to 
be interpreted at runtime.

The consequences are that P-code and JVM are much easier to implement on 
different architectures, but suffer a significant performance hit
(typically 
10% of the performance of native code).

It is not quite as black and white as this - e.g. the version of UCSD
Pascal 
that I used on the Sage IV micro had a P-Code to 68000 translator, Western

Digital built a CPU that executed P-Code, Java has the 'HotSpot' dynamic 
compiler etc. For anybody who wants a more indepth analysis of the subject
a 
good article is K John Gough's article "Stacking them up: A Comparison of 
Virtual Machines":

http://sky.fit.qut.edu.au/~gough/publications.html

Chris Burrows
CFB Software
http://www.cfbsoftware.com/gpcp
 




 20 Posts in Topic:
Translating an embedded C algorithm
"Talulah" <p  2007-01-15 06:35:25 
Re: Translating an embedded C algorithm
"Richard Engebretson  2007-01-16 02:53:13 
Re: Translating an embedded C algorithm
Eli Gottlieb <eligottl  2007-01-17 10:01:22 
Re: Translating an embedded C algorithm
"Talulah" <p  2007-01-18 01:09:20 
Re: Translating an embedded C algorithm
"Richard Engebretson  2007-01-18 03:06:48 
Re: Translating an embedded C algorithm
"Talulah" <p  2007-01-18 05:33:09 
Re: Translating an embedded C algorithm
Femme Verbeek <fv@[EMA  2007-01-18 14:39:52 
Re: Translating an embedded C algorithm
"Richard Engebretson  2007-01-18 08:52:16 
Re: Translating an embedded C algorithm
"Richard Engebretson  2007-01-18 09:31:54 
Re: Translating an embedded C algorithm
CBFalconer <cbfalconer  2007-01-18 16:49:45 
Re: Translating an embedded C algorithm
"Talulah" <p  2007-01-19 03:50:21 
Re: Translating an embedded C algorithm
Jonas Maebe <Jonas.Mae  2007-01-19 14:32:45 
Re: Translating an embedded C algorithm
Marco van de Voort <ma  2007-01-19 15:25:10 
P-Code, JVM and IL (was: Translating an embedded C algorithm)
"Chris Burrows"  2007-01-20 10:55:47 
Re: Translating an embedded C algorithm
CBFalconer <cbfalconer  2007-01-19 17:33:00 
Re: Translating an embedded C algorithm
CBFalconer <cbfalconer  2007-01-19 17:15:56 
Re: Translating an embedded C algorithm
Waldek Hebisch <hebisc  2007-01-19 21:53:51 
Re: Translating an embedded C algorithm
"Richard Engebretson  2007-01-20 08:12:24 
Re: Translating an embedded C algorithm
"Talulah" <p  2007-01-22 01:45:19 
Re: Translating an embedded C algorithm
"Richard Engebretson  2007-01-23 04:01:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 0:35:08 CDT 2008.