Am Sonntag, den 18.12.2011, 18:40 +0200 schrieb Dmitry Grebeniuk:
> Hello.
> 
> >> So, this is a -custom linked bytecode executable.
> 
>   Thanks for clarifications about -custom and dynamic loading.
> 
> > ocamlc -o myrun -make-runtime unix.cma
> >
> > Then ./myrun prog should work (provided that Unix is the only missing
> > lib).
> 
>   Yes, it works (fails on the next required library).
>   But in my practice I've never needed -make-runtime.  What
> are the practical cases when -make-runtime is useful?

It's mostly useful on platforms where dynamic libraries are not
implemented. You can then at least create your own ocamlrun that is able
to run all your programs. There is a companion switch -use-runtime which
instructs to use a certain runtime when linking a program.

On platforms with dynamic libraries it is close to useless. (Well, if I
remember correctly, I'm using this feature in the GODI bootstrap to get
a distributed bytecode executable running on the local system, w/o
needing a complete ocaml infrastructure, but this is certainly a very
special case.)

Gerd
-- 
------------------------------------------------------------
Gerd Stolpmann, Darmstadt, Germany    [email protected]
Creator of GODI and camlcity.org.
Contact details:        http://www.camlcity.org/contact.html
Company homepage:       http://www.gerd-stolpmann.de
*** Searching for new projects! Need consulting for system
*** programming in Ocaml? Gerd Stolpmann can help you.
------------------------------------------------------------



-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to