caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Alain Frisch <alain@frisch.fr>
To: Sylvain Le Gall <sylvain@le-gall.net>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Re: Pre-compiled ocaml binary for windows
Date: Tue, 07 Dec 2010 10:49:14 +0100	[thread overview]
Message-ID: <4CFE031A.6060801@frisch.fr> (raw)
In-Reply-To: <slrnifs0co.ut5.sylvain@gallu.homelinux.org>

On 12/07/2010 10:42 AM, Sylvain Le Gall wrote:
>> An option could be to ship a minimalistic main program, which simply
>> dynlinks .cmxs files given on its command line.
>>
>
> You mean like ld.ocaml:
> https://forge.ocamlcore.org/projects/ld-ocaml/

Or just something like:

let () =
    try
      for i = 1 to Array.length Sys.argv - 1 do
        Dynlink.loadfile Sys.argv.(i)
      done
    with exn ->
      Format.eprintf "Uncaught exception: %s@." (Printexc.to_string exn)

(untested, and you probably want to print the stack trace as well)


-- Alain


  reply	other threads:[~2010-12-07  9:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-03 20:06 José Romildo Malaquias
2010-12-06 15:28 ` [Caml-list] " Damien Doligez
2010-12-06 16:08   ` Sylvain Le Gall
2010-12-06 17:50     ` [Caml-list] " Matthieu Dubuget
2010-12-07  0:24       ` Sylvain Le Gall
2010-12-07  8:21         ` [Caml-list] " Alain Frisch
2010-12-07  9:03           ` Sylvain Le Gall
2010-12-07  9:30             ` [Caml-list] " Alain Frisch
2010-12-07  9:42               ` Sylvain Le Gall
2010-12-07  9:49                 ` Alain Frisch [this message]
2010-12-09 11:54                   ` [Caml-list] " Mauricio Fernandez
2010-12-09 13:12                     ` Alain Frisch
2010-12-07  9:42               ` gasche
2010-12-07  9:52                 ` Alain Frisch
2010-12-07 10:29                   ` gasche
2010-12-07 15:57   ` [Caml-list] " ygrek

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=4CFE031A.6060801@frisch.fr \
    --to=alain@frisch.fr \
    --cc=caml-list@inria.fr \
    --cc=sylvain@le-gall.net \
    /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;
as well as URLs for NNTP newsgroup(s).