<?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="2009/01/7dd8b17723f54e4e1f984f635aa1d367"
  from="Florent Monnier &lt;fmonnier@l...&gt;"
  author="Florent Monnier"
  date="2009-01-09T17:15:36"
  subject="Re: [Caml-list] Toplevel - loading dependencies"
  prev="2009/01/6e6d3c0326d97e4ac71e057ef3170786"
  next="2009/01/f8a33f74e66883b70cf383c45b74875b"
  prev-in-thread="2009/01/7bdc002ffff85262050bac81b75cb3df"
  next-in-thread="2009/01/68a29877bfbd573954edce82da5f896a"
  prev-thread="2009/01/2112b46e78c48d5a1e210bbd83ebb31a"
  next-thread="2009/01/28ab596a711780efefe765f0d5873dc1"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Toplevel - loading dependencies">
<msg 
  url="2009/01/8098af0c31ee2dfc908c6c4b9d081e1e"
  from="Dawid Toton &lt;dawid.toton@u...&gt;"
  author="Dawid Toton"
  date="2009-01-09T14:23:39"
  subject="Toplevel - loading dependencies">
<msg 
  url="2009/01/7bdc002ffff85262050bac81b75cb3df"
  from="Matthieu Dubuget &lt;matthieu.dubuget@g...&gt;"
  author="Matthieu Dubuget"
  date="2009-01-09T14:35:23"
  subject="Re: [Caml-list] Toplevel - loading dependencies">
</msg>
<msg 
  url="2009/01/7dd8b17723f54e4e1f984f635aa1d367"
  from="Florent Monnier &lt;fmonnier@l...&gt;"
  author="Florent Monnier"
  date="2009-01-09T17:15:36"
  subject="Re: [Caml-list] Toplevel - loading dependencies">
<msg 
  url="2009/01/68a29877bfbd573954edce82da5f896a"
  from="Dawid Toton &lt;d0@w...&gt;"
  author="Dawid Toton"
  date="2009-01-09T18:13:14"
  subject="Re: [Caml-list] Toplevel - loading dependencies">
</msg>
</msg>
<msg 
  url="2009/01/c56de9ea8eab932fc48cbbe52c2aff41"
  from="Peng Zang &lt;peng.zang@g...&gt;"
  author="Peng Zang"
  date="2009-01-09T17:53:24"
  subject="Re: [Caml-list] Toplevel - loading dependencies">
</msg>
</msg>
</thread>

<contents>
&gt; If I put everything into one big cma, then I have to recompile it every
&gt; small change. It takes so long time, that it would make no sense to use
&gt; the interpreter at all.

in case you're doing so this way:
ocamlc -o my.cma mod1.ml mod2.ml mod3.ml mod4.ml

this will recompile everything,
but you can use in your makefile:
%.cmo: %.ml
        ocamlc.opt -c $&lt;
my.cma: mod1.cmo mod2.cmo mod3.cmo mod4.cmo
        ocamlc.opt -a -o $@ $^

then you don't recompile everything, only the modified module

if there are dependencies between modules, just add additional rules:
modfoo.cmo: modfoo.ml modbar.cmi



</contents>

</message>

