caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Basile Starynkevitch [local]" <basile.starynkevitch@inria.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Writing a JIT compiler
Date: Fri, 25 Jun 2004 12:56:22 +0200	[thread overview]
Message-ID: <20040625105622.GA2707@bourg.inria.fr> (raw)
In-Reply-To: <200406251053.14819.postmaster@jdh30.plus.com>

On Fri, Jun 25, 2004 at 10:53:14AM +0100, Jon Harrop wrote:
> On Friday 25 June 2004 09:52, Benjamin Geer wrote:
> > There's already a JIT compiler for OCaml code:
> >
> > http://cristal.inria.fr/~starynke/ocamljit.html
> 
> So maybe I could get ocamljitrun to execute my interpreter and write my 
> interpreter to dynamically convert host code into OCaml bytecode which can 
> then be JIT compiled into native code and dynamically linked back in with the 

Ocamljitrun is a plugin replacement for ocamlrun (and libcamlrun.a,
renamed as libcamljitrun.a) - it executes Ocaml bytecode (by
translating them transparently into native code). It works with
dynamically linked ocaml modules and toplevels.

So your interpreter might generate Ocaml bytecode (perhaps reusing the
"lambda" representation of Ocamlc) - and ocamljitrun will, when
interpreting it, translate the bytecode to machine code.

Ocamljitrun requires latest Ocaml CVS or future Ocaml 3.08. (the
current 3.07 release won't work with it).

Feel free to ask me additional questions about it.

As I told in my previous posting, you might have a look into MetaOcaml
(see http://metaocaml.org/ for more)

Regards.
-- 
Basile STARYNKEVITCH -- basile dot starynkevitch at inria dot fr
Project cristal.inria.fr - phone +33 1 3963 5197 - mobile 6 8501 2359
http://cristal.inria.fr/~starynke --- all opinions are only mine 

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2004-06-25 10:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-25  8:04 Jon Harrop
2004-06-25  8:52 ` Benjamin Geer
2004-06-25  9:53   ` Jon Harrop
2004-06-25 10:56     ` Basile Starynkevitch [local] [this message]
2004-06-25  9:59 ` Basile Starynkevitch [local]
     [not found]   ` <200406251325.15940.postmaster@jdh30.plus.com>
2004-06-25 15:55     ` Basile Starynkevitch [local]
2004-06-25 17:05       ` Daniel Bünzli
2004-06-26 13:45       ` [Caml-list] " Julian Brown
2004-06-26 19:18         ` Basile Starynkevitch [local]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040625105622.GA2707@bourg.inria.fr \
    --to=basile.starynkevitch@inria.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).