Browse thread
ocaml for embedding
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | David MENTRE <dmentre@l...> |
| Subject: | Re: [Caml-list] ocaml for embedding |
Hello, 2010/7/8 Gaspard Bucher <gaspard@teti.ch>: > 1. Is it possible to embed an ocaml compiler ? (something that eats > std::string and produces a callable thing) No, not the compiler. It is however possible to embed an interpreter and to load byte code (and native code?) on demand: http://caml.inria.fr/pub/docs/manual-ocaml/manual032.html#toc134 > 2. How would an interface between C++ and a compiled script work ? (passing > values, getting return values) Through a C interface. See above link. Sincerely yours, david