From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: Dmitry Grebeniuk <gdsfh1@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] bytecode: ./prog vs ocamlrun ./prog
Date: Sun, 18 Dec 2011 17:49:33 +0100 [thread overview]
Message-ID: <1324226973.7750.132.camel@samsung> (raw)
In-Reply-To: <CAPi0vKU2LdptS=k=zsg-eWM+HfnFaf4tpqTpU95L3BH2SbgpBg@mail.gmail.com>
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 gerd@gerd-stolpmann.de
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.
------------------------------------------------------------
next prev parent reply other threads:[~2011-12-18 16:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-18 4:30 Jacques Garrigue
2011-12-18 15:20 ` oliver
2011-12-18 15:39 ` Dmitry Grebeniuk
2011-12-18 15:53 ` Gerd Stolpmann
2011-12-18 16:40 ` Dmitry Grebeniuk
2011-12-18 16:49 ` Gerd Stolpmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-12-18 1:19 Dmitry Grebeniuk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1324226973.7750.132.camel@samsung \
--to=info@gerd-stolpmann.de \
--cc=caml-list@inria.fr \
--cc=gdsfh1@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox