caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Incremental linking
@ 2009-09-29 18:39 Dawid Toton
  2009-09-29 21:08 ` [Caml-list] " Gerd Stolpmann
  0 siblings, 1 reply; 3+ messages in thread
From: Dawid Toton @ 2009-09-29 18:39 UTC (permalink / raw)
  To: caml-list

I have lot of modules and they are compiled to native code.
So I have .cmx and .o files and want to link them faster.

Is is possible to make linking an associative operation acting on modules?

I would like to do something like the following:
Knowing the correct partial order of modules (that compiler requires) I
can create a tree that preserves that order. Leafs are modules. Other
nodes of the tree correspond to a result of linking all descendant
modules. Modules that are frequently recompiled are placed closer to the
root. This way I expect to execute less linking operations during
development.

Documentation of ld says that files produced with --relocatable can be
used as intermediate partially linked files. Can something like this be
done with object code produced by ocamlopt?
I don't know ocaml-specific details of linking, so maybe I overlook some
obvoius obstacle?

Dawid


^ permalink raw reply	[flat|nested] 3+ messages in thread
* Incremental linking
@ 2009-09-29 18:38 Dawid Toton
  2009-09-30  8:08 ` [Caml-list] " Xavier Leroy
  0 siblings, 1 reply; 3+ messages in thread
From: Dawid Toton @ 2009-09-29 18:38 UTC (permalink / raw)
  To: caml-list

I have lot of modules and they are compiled to native code.
So I have .cmx and .o files and want to link them faster.

Is is possible to make linking an associative operation acting on modules?

I would like to do something like the following:
Knowing the correct partial order of modules (that compiler requires) I 
can create a tree that preserves that order. Leafs are modules. Other 
nodes of the tree correspond to a result of linking all descendant 
modules. Modules that are frequently recompiled are placed closer to the 
root. This way I expect to execute less linking operations during 
development.

Documentation of ld says that files produced with --relocatable can be 
used as intermediate partially linked files. Can something like this be 
done with object code produced by ocamlopt?
I don't know ocaml-specific details of linking, so maybe I overlook some 
obvoius obstacle?

Dawid


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-30  8:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-29 18:39 Incremental linking Dawid Toton
2009-09-29 21:08 ` [Caml-list] " Gerd Stolpmann
  -- strict thread matches above, loose matches on Subject: below --
2009-09-29 18:38 Dawid Toton
2009-09-30  8:08 ` [Caml-list] " Xavier Leroy

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).