Re: Delphi to bytecode compiler

From: Chris Uppal (chris.uppal_at_metagnostic.REMOVE-THIS.org)
Date: 08/27/04

  • Next message: Andy: "Re: Delphi to bytecode compiler"
    Date: Fri, 27 Aug 2004 11:47:55 +0100
    
    

    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


  • Next message: Andy: "Re: Delphi to bytecode compiler"

    Relevant Pages

    • Re: Java question
      ... Thats correct, however as I stated, you loose all the standard stuff that comes with a JVM and you loose the capability to have a runtime that behaves similar and can be tuned and parameterized similar to other platforms. ... Or when classes are used among multiple JVMs, in addition to the shared classloader cache having a shared JIT cache would likely have its benefits. ... Subject: Java question ... expect this to be the very same version of the compiler, ...
      (bit.listserv.ibm-main)
    • Re: Delphi to bytecode compiler
      ... > compiler... ... It largely focuses on running Component ... Pascal on the CLR, and although the CRL is not the same as the JVM, there are ... "Component Pascal" and "gpcp" as easily as I) so you may be able to find ...
      (comp.lang.java)
    • Re: Delphi to bytecode compiler
      ... > compiler... ... It largely focuses on running Component ... Pascal on the CLR, and although the CRL is not the same as the JVM, there are ... "Component Pascal" and "gpcp" as easily as I) so you may be able to find ...
      (comp.lang.java.programmer)
    • Re: A question related to type casting
      ... public int __specialised_get{ ... the code you posted might work fine for that very specific example (if you somehow convince Java to actually successfully break its own rules to generate code like that). ... The JVM is allowed to do all kinds of optimizations at run time that have nothing to do with what the compiler conceptually does, as long as in practice it gives results consistent with the specified program. ...
      (comp.lang.java.programmer)
    • Re: Java question
      ... at the will of the programmer instead of at the will of the JVM. ... recognize pre-compiled java class files. ... JIT compiled machine code version today? ... expect this to be the very same version of the compiler, ...
      (bit.listserv.ibm-main)