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
Dynamic loading of bytecode
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-08-17 (11:48)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: [Caml-list] Dynamic loading of bytecode
> How can you load the whole module hiearchy (many modules, dependent on
> one another) with a single command in toploop?

You cannot.  However, you could build a .cma archive via a Makefile:

    ocamlc -a -o mylib.cma a.cmo b.cmo

and issue the toplevel command #load "mylib.cma", which will load both
module implementations at once.

- Xavier Leroy