caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Vladimir Shabanov" <vshabanoff@gmail.com>
To: "Joel Reymont" <joelr1@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] cross-compliation from x86 linux to windows?
Date: Fri, 18 Apr 2008 17:52:35 +0400	[thread overview]
Message-ID: <8ef825670804180652j7873643aybda7998477b5bb35@mail.gmail.com> (raw)
In-Reply-To: <A7864B89-5A00-4B11-9ABB-1FEBED1CA1E3@gmail.com>

2008/4/15, Joel Reymont <joelr1@gmail.com>:
> Is it possible to reuse on Windows the output
>  from ocamlc/ocamlopt -output-obj?

I think you can reuse pure bytecode (.cmo .cma w/o C objects) on
different platforms using ocamlc for static linking or Dynlink for
dynamic one.

If you don't need .NET you can just make main program in OCaml which
Dynlinks your blackbox modules. On loading module just registers
necessary functions in main program and provide no public interface
(empty .mli file), so you get module which works only with your
program and no one can call its functions from ocaml interpreter.

If you really need DLLs you can try to compile them on linux using
some windows emulator. OCaml works under Wine. I didn't tried to make
DLLs under Wine but it can be possible.


  reply	other threads:[~2008-04-18 13:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-14 20:39 Joel Reymont
2008-04-18 13:52 ` Vladimir Shabanov [this message]
2008-04-18 18:11   ` [Caml-list] " Richard Jones

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=8ef825670804180652j7873643aybda7998477b5bb35@mail.gmail.com \
    --to=vshabanoff@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=joelr1@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;
as well as URLs for NNTP newsgroup(s).