Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
ocaml for embedding
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-07-09 (07:07)
From: David MENTRE <dmentre@l...>
Subject: Re: [Caml-list] ocaml for embedding

2010/7/8 Gaspard Bucher <>:
> 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:

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