From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 540D7BCBA for ; Fri, 1 Jul 2005 13:23:44 +0200 (CEST) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.198]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j61BNhPc008128 for ; Fri, 1 Jul 2005 13:23:44 +0200 Received: by rproxy.gmail.com with SMTP id a36so248963rnf for ; Fri, 01 Jul 2005 04:23:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=UxniUuZtEVNAjW5G6AFgPw40F6vFfegB+yZYL3ksY4FXFpfONBBRy8KjLeqDt3K0KDBnHCndcAJ2kH1Cvp6L1hEtHIStbaZEt+Y2232cYOgp+yf66cA5wpzSQLav6fbR/j1RuVwCGZjd4l2Q6MyU19Jh/zrhaZ1CUQ+gQJxdgD8= Received: by 10.38.65.7 with SMTP id n7mr995097rna; Fri, 01 Jul 2005 04:23:43 -0700 (PDT) Received: by 10.38.209.44 with HTTP; Fri, 1 Jul 2005 04:23:43 -0700 (PDT) Message-ID: Date: Fri, 1 Jul 2005 23:23:43 +1200 From: Jonathan Roewen Reply-To: Jonathan Roewen To: caml-list@yquem.inria.fr Subject: [Caml-list] toplevels / bytecode interpreter Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Miltered: at nez-perce with ID 42C527BF.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 toplevels:01 bytecode:01 ocaml:01 bytecode:01 libc:01 toplevel:01 pointers:01 ...:98 simpler:01 native:02 native:02 top-level:02 interface:05 i'd:05 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.2 X-Spam-Level: Hi, Can the OCaml bytecode interpreter be embedded in C programs? For example, a C program that mimics the top-level to a simpler degree. I'm thinking of changing DST so that it runs a bytecode interpreter on the bare metal instead of native code. Although, I'm sure I'd need a lot more libc underneath to get it working compared to native code ;-) I was also thinking the toplevel might be a good place to start (though, don't exactly need the shell-like interface...). Some pointers on general directions to take would be great. Kindest Regards, Jonathan Roewen