From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr 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 AB205BB9A for ; Wed, 26 Oct 2005 02:33:34 +0200 (CEST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.207]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j9Q0XXCw007024 for ; Wed, 26 Oct 2005 02:33:34 +0200 Received: by xproxy.gmail.com with SMTP id s17so75300wxc for ; Tue, 25 Oct 2005 17:33:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=g99bLbEyBIe5II2QLC2W7IRmZnLsNt9VbAtT1catdjWSGN+TSquUSBVWUW6dUY15THRlFImdkhMmdsvwnEGXFh7bGllNYwDc9NJSwOaSITFmg+om75mMGIlgOKBJKjdqS6ThFUbAxGuWTqN5+uYzCrswtPSDGh3HbnV/BG8Pxrs= Received: by 10.65.61.17 with SMTP id o17mr258682qbk; Tue, 25 Oct 2005 17:33:33 -0700 (PDT) Received: by 10.65.35.7 with HTTP; Tue, 25 Oct 2005 17:33:33 -0700 (PDT) Message-ID: Date: Wed, 26 Oct 2005 13:33:33 +1300 From: Jonathan Roewen To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] The Bytecode Interpreter... In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Miltered: at nez-perce with ID 435ECEDD.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 bytecode:01 initialized:01 camlexport:01 char:01 char:01 argv:01 bytecode:01 ...:98 data:02 data:02 caml:02 caml:02 size:95 size:95 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.3 Okay, last question =3D) The following is from startup.c in 'byterun' dir. /* Main entry point when code is linked in as initialized data */ CAMLexport void caml_startup_code( code_t code, asize_t code_size, char *data, asize_t data_size, char *section_table, asize_t section_table_size, char **argv) Is it possible to create my own app that calls this function, instead of caml_main (since that needs to open files and what not)? If so, how can I get all the required data to pass to it? Like, would this work if I had a copy of a bytecode application in memory? Jonathan