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