Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Delphi to bytecode compiler

Reply
Thread Tools

Delphi to bytecode compiler

 
 
Jonathan Neve
Guest
Posts: n/a
 
      08-27-2004
Hi all!

I'm wondering what would be involved in making a Delphi to bytecode
compiler... Does anyone have any experience writing compilers, that
could give me some advice?

The reason I think this would be useful, is that it would broaden the
scope of the Java platform, enabling many languages to be used (just
like .NET). There are already several langages (e.g. Java, Jython,
Groovy, and perhaps others), but it would be nice to have a language as
close as possible to Delphi syntax that could likewise compile into
bytecode. This would greatly facilitate converting projects from Delphi
to Java.

Any ideas?

Thanks!
Joanthan Neve.
 
Reply With Quote
 
 
 
 
Chris Uppal
Guest
Posts: n/a
 
      08-27-2004
Jonathan Neve wrote:

> I'm wondering what would be involved in making a Delphi to bytecode
> compiler... Does anyone have any experience writing compilers, that
> could give me some advice?


An ambitious project.

You might want to look for the book:

Programming for the Java Virtual Machine
Joshua Engel

which talks quite a lot about compiling non-Java to run on the JVM.

It might be that the book

Compiling for the .NET Common Language Runtime (CLR)
John Gough

would be even better in some ways. It largely focuses on running Component
Pascal on the CLR, and although the CRL is not the same as the JVM, there are
many similarities. The same implementation (gpcp) is also able to generate
Java bytecodes, so the author is JVM-aware and occasionally mentions JVM issues
in the book. The implementation is on the Web somewhere (you can Google for
"Component Pascal" and "gpcp" as easily as I) so you may be able to find
material about the JVM implementation if you look around a bit.

-- chris


 
Reply With Quote
 
 
 
 
Andy
Guest
Posts: n/a
 
      08-27-2004
Hi,
I wanted to do the same for my own language and wrote a library (still
working on it)
in C that allows to read/write Java bytecode
You can find out more at
http://sourceforge.net/projects/myfriend/
You could also check out the whole project
cvs -z3 -dserver::/cvsroot/myfriend co
myfriend/friend2java

"Jonathan Neve" <> wrote in message
news: om...
> Hi all!
>
> I'm wondering what would be involved in making a Delphi to bytecode
> compiler... Does anyone have any experience writing compilers, that
> could give me some advice?
>
> The reason I think this would be useful, is that it would broaden the
> scope of the Java platform, enabling many languages to be used (just
> like .NET). There are already several langages (e.g. Java, Jython,
> Groovy, and perhaps others), but it would be nice to have a language as
> close as possible to Delphi syntax that could likewise compile into
> bytecode. This would greatly facilitate converting projects from Delphi
> to Java.
>
> Any ideas?
>
> Thanks!
> Joanthan Neve.



 
Reply With Quote
 
Kai Thomsen
Guest
Posts: n/a
 
      08-28-2004
A couple of years ago Borland actually developed a prototype of a
Delphi->Java Bytecode compiler. But as far as I remember they never got
beyond console applications and considered the effort of translating VCL
code to Swing as too much. You could google the Borland newsgroups for
information about this project.

Kai

Jonathan Neve wrote:

> Hi all!
>
> I'm wondering what would be involved in making a Delphi to bytecode
> compiler... Does anyone have any experience writing compilers, that
> could give me some advice?
>
> The reason I think this would be useful, is that it would broaden the
> scope of the Java platform, enabling many languages to be used (just
> like .NET). There are already several langages (e.g. Java, Jython,
> Groovy, and perhaps others), but it would be nice to have a language as
> close as possible to Delphi syntax that could likewise compile into
> bytecode. This would greatly facilitate converting projects from Delphi
> to Java.
>
> Any ideas?
>
> Thanks!
> Joanthan Neve.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
basic bytecode to machine code compiler (part 3) Rouslan Korneychuk Python 2 06-21-2011 08:06 PM
basic bytecode to machine code compiler (part 2) Rouslan Korneychuk Python 0 05-18-2011 01:03 AM
a basic bytecode to machine code compiler Rouslan Korneychuk Python 10 04-03-2011 12:12 AM
question about a command like 'goto ' in Python's bytecode or it'sjust a compiler optimization? higer Python 8 06-19-2009 12:11 AM
[QUIZ] Bytecode Compiler (#100) Ruby Quiz Ruby 19 11-09-2006 08:15 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57