<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2005/05/9911874e1ae1601791833b3fe0df85a6"
  from="Robert Roessler &lt;roessler@r...&gt;"
  author="Robert Roessler"
  date="2005-05-24T06:38:18"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs"
  prev="2005/05/fc38fd9a87d630b7d9df42b16cfbaec0"
  next="2005/05/d756c60086dad92de4bcd0a7bf604a8c"
  prev-in-thread="2005/05/ea5f2ee9392f6d3c9e16ec04a76fbddb"
  next-in-thread="2005/05/d756c60086dad92de4bcd0a7bf604a8c"
  prev-thread="2005/05/6bc8288e79ab9a5dc858b7fdb70117d6"
  next-thread="2005/05/9286991d81ae52bf3d33cf5e71230358"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="ocamlopt and *using* DLLs">
<msg 
  url="2005/05/a36fd4aef9cd201c1ad33f6b4cda255d"
  from="Robert Roessler &lt;roessler@r...&gt;"
  author="Robert Roessler"
  date="2005-05-24T03:53:20"
  subject="ocamlopt and *using* DLLs">
<msg 
  url="2005/05/ea5f2ee9392f6d3c9e16ec04a76fbddb"
  from="Jacques Garrigue &lt;garrigue@m...&gt;"
  author="Jacques Garrigue"
  date="2005-05-24T04:30:04"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
<msg 
  url="2005/05/9911874e1ae1601791833b3fe0df85a6"
  from="Robert Roessler &lt;roessler@r...&gt;"
  author="Robert Roessler"
  date="2005-05-24T06:38:18"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
<msg 
  url="2005/05/d756c60086dad92de4bcd0a7bf604a8c"
  from="Nicolas Cannasse &lt;warplayer@f...&gt;"
  author="Nicolas Cannasse"
  date="2005-05-24T07:11:36"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
<msg 
  url="2005/06/c3ffc54913b55d70b279663a47aa1f00"
  from="Robert Roessler &lt;roessler@r...&gt;"
  author="Robert Roessler"
  date="2005-06-01T20:30:47"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
<msg 
  url="2005/06/3d049d9b338577fabcc04dfc9dcbab83"
  from="Robert Roessler &lt;roessler@r...&gt;"
  author="Robert Roessler"
  date="2005-06-02T04:23:05"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
</msg>
</msg>
<msg 
  url="2005/05/ff17d1c954de2ba853ef42e9992815d1"
  from="Robert Roessler &lt;roessler@r...&gt;"
  author="Robert Roessler"
  date="2005-05-27T01:49:01"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
</msg>
</msg>
</msg>
<msg 
  url="2005/05/87c5fe0e8212d87896c17081bc2d5289"
  from="Robert Roessler &lt;roessler@r...&gt;"
  author="Robert Roessler"
  date="2005-05-27T02:11:55"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
<msg 
  url="2005/05/a90835e46a619e0296c0fb6edda3bd99"
  from="Anatoly Zaretsky &lt;anatoly.zaretsky@g...&gt;"
  author="Anatoly Zaretsky"
  date="2005-05-27T08:17:53"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
<msg 
  url="2005/05/0a214c2eefcf26ec113049096f0a4572"
  from="Nicolas Cannasse &lt;warplayer@f...&gt;"
  author="Nicolas Cannasse"
  date="2005-05-28T07:10:48"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2005/05/fc38fd9a87d630b7d9df42b16cfbaec0"
  from="Nicolas Cannasse &lt;warplayer@f...&gt;"
  author="Nicolas Cannasse"
  date="2005-05-24T05:07:06"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
<msg 
  url="2005/05/f7e5de978308cd1ac2f2aaed1788e34f"
  from="Robert Roessler &lt;roessler@r...&gt;"
  author="Robert Roessler"
  date="2005-05-27T01:48:37"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
</msg>
</msg>
</msg>
</thread>

<contents>
Jacques Garrigue wrote:

&gt; From: Robert Roessler &lt;roessler@rftp.com&gt;
&gt; 
&gt;&gt;I tried this on the beginners list, but may not have been asking the 
&gt;&gt;right question(s)... :)
&gt; 
&gt; 
&gt; Doesn't look like a beginner question...

I had been hoping that the ocamlopt manual was not wrong, and that I 
was just missing something... simple. :)

&gt;&gt;2b) can I in general expect that an app that works well with ocamlc 
&gt;&gt;and a collection of OCaml cma libs and compiled DLLs (LablGTK and 
&gt;&gt;associated runtime) will work with ocamlopt - assuming that I generate 
&gt;&gt;and replace cmo/cma files with cmx/cmxa files?
&gt; 
&gt; 
&gt; Except these linking problems, you can assume identical behaviour.
&gt; If there are significant discrepancies, please report them.

Actually, it looks like Nicolas brings up a large conceptual 
difference... I was at first tempted to say that his points about 
ocamlrun.dll did not apply to my case, but then I realized that my 
DLL, while primarily concerned with interfacing between OCaml and the 
C-land Scintilla editing widget, does in fact call on the OCaml 
runtime for things like string and tuple allocation.

Put a different way, ml_scintilla.dll definitely has a dependence on 
ocamlrun.dll - which logical need would not go away even if I 
repackaged the DLL as a static lib.

So, where (in both a conceptual as well as linking-specific terms) do 
I find the hooks (caml_alloc_string, caml_alloc_tuple, 
caml_named_value etc) into the OCaml runtime when it is embedded in my 
ocamlopt-generated executable?

Robert Roessler
roessler@rftp.com
http://www.rftp.com

</contents>

</message>

