[
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 Allsopp <dra-news@m...> |
| Subject: | RE: [Caml-list] OCaml as an application scripting language (like Guile)? |
Jan Ober wrote: > I had a hard time finding how one would go about getting the > bytecode compiler and bytecode interpreter integrated > in a library-like fashion. toplevel/topmain.ml and driver/main.ml in the OCaml sources are both pretty good start-points to show how the compiler and runtime work. Section 18.7.4 of the manual explains embedding OCaml code within a C(++) library (and there have been various threads in the past on this list on the subject). I have no idea (though would be interested to know) what the licensing aspects of doing that would be... I had a brief look at the code a few months ago for another project and reckoned that there'd be no need to alter any of the OCaml source files, but I don't know whether the linking exception in the licence for OCaml extends to linking the compiler into an application! David