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
Contrib: dynlink for native code executables to load .cmo files
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1998-11-03 (15:56)
From: Fabrice Le Fessant <Fabrice.Le_Fessant@i...>
Subject: Contrib: dynlink for native code executables to load .cmo files

  I have written a small interpretor of Ocaml-2.00 bytecode in Ocaml.
The main interest of this program is that it allows native code
programs to load and execute .cmo files. This library uses the same
interface as the Dynlink library of the Ocaml distribution.
Dynamically linked modules are able to use the functions defined both
in native code modules and previously linked bytecode modules, and
even C primitives if they have been correctly declared to the dynamic
linker. If bytecode functions are stored in some native code data
structures, the native code can then also use them as if they were
native code functions.

  This is still a Beta version (some bytecodes have not been
implemented (GETMETHOD, and float arrays)). Pure bytecode computations
are about ten times slower than when they are executed by ocamlrun. 


Comments and bugs: 
Fabrice Le Fessant (Email : Fabrice.Le_fessant@inria.fr )
PARA project
INRIA Rocquencourt