caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Issac Trotts" <ijtrotts@ucdavis.edu>
To: caml-list@inria.fr
Cc: Henri DF <henri.dubois-ferriere@epfl.ch>
Subject: Re: [Caml-list] Announce: Nativize 0.1
Date: Mon, 8 Mar 2004 15:29:57 -0800	[thread overview]
Message-ID: <20040308232914.GA1011@manzanita> (raw)
In-Reply-To: <Pine.LNX.4.44.0403082258090.6523-100000@lcmpc4.epfl.ch>

On Mon, Mar 08, 2004 at 10:59:12PM +0100, Henri DF wrote:
> sounds cool!!
> just wondering , reading through your example below:
> why wouldn't you spit out a "Ack1.cmx", if this is native code?

Well, I do something like that behind the scenes, but I can't just load
a .cmx file directly into the toplevel.  Instead, I compile a native
code program named Ack1 whose purpose is to evaluate the Ackermann
function.  It takes three arguments, the first two being the names of
temporary files holding marshalled arguments, the last one being the
name of a temporary file where it should store its answer in marshalled
form.  The code in Ack1.cmo marshalls the arguments (5 and 0 in the case
below) into these temporary files, calls the Ack1 program on the temp
files, reads the answer from the result file and then returns it.  

-- 
Issac Trotts
http://redwood.ucdavis.edu/~issac

-------------------
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


      parent reply	other threads:[~2004-03-08 23:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-08  9:11 Issac Trotts
     [not found] ` <Pine.LNX.4.44.0403082258090.6523-100000@lcmpc4.epfl.ch>
2004-03-08 23:29   ` Issac Trotts [this message]

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=20040308232914.GA1011@manzanita \
    --to=ijtrotts@ucdavis.edu \
    --cc=caml-list@inria.fr \
    --cc=henri.dubois-ferriere@epfl.ch \
    /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).