On 12/09/2010 12:54 PM, Mauricio Fernandez wrote:
This approach is not exactly convenient because the list of cmxs to be loaded
can easily get very long...

I was thinking of replacing the call to "ocamlopt" used to build the main program (which requires external tools) with a call to "ocamlopt -shared" to build a single monolithic .cmxs file that contains all the modules for the program. So the generic loader would usually be called with a single argument (and it would probably be better to leave the other arguments so that they can be used by the program, as for "ocamlrun").

-- Alain

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to