From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA01912; Fri, 25 Jun 2004 10:06:12 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA02624 for ; Fri, 25 Jun 2004 10:06:10 +0200 (MET DST) Received: from ptb-relay02.plus.net (ptb-relay02.plus.net [212.159.14.213]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i5P86ASH020870 for ; Fri, 25 Jun 2004 10:06:10 +0200 Received: from [80.229.56.224] (helo=chetara) by ptb-relay02.plus.net with esmtp (Exim) id 1Bdliq-000ATL-2b for caml-list@inria.fr; Fri, 25 Jun 2004 08:06:08 +0000 From: Jon Harrop To: "caml-list" Subject: [Caml-list] Writing a JIT compiler Date: Fri, 25 Jun 2004 09:04:09 +0100 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200406250904.09178.postmaster@jdh30.plus.com> X-Miltered: at concorde with ID 40DBDCF2.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; postmaster:99 ocamlopt:01 marshalling:01 compiler:01 compiler:01 ocaml:01 ocaml:01 jit:03 jit:03 interpreter:03 data:03 data:03 functions:05 seems:05 structures:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I'm trying to convert an interpreter written in OCaml into a JIT compiler. Generating OCaml code from host code seems to be the best way to do this as the generated code can then use the interpreter's data structures and functions. However, I'm currently creating temporary source files, calling ocamlopt and using marshalling to another temporary file in order to get the data back and forth. Is there a better way of doing this? Cheers, Jon. ------------------- 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