English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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

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