English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Dependencies and rebuilding
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-03-07 (21:24)
From: Zheng Li <li@p...>
Subject: Re: Dependencies and rebuilding


Jakob Lichtenberg <jakobl@windows.microsoft.com> writes:
> If I change the body of functions in a base library, but not the
> externally visible signature, I still have to recompile the consumers of
> the base library prior to linking the main application.  While this is
> not a problem in the trivial case I'll show beneath, it may be a concern
> from a componentization and scalability point of view.  Regular C code
> does not have this limitation.  This e-mail to request why the design is
> as it is?

You compile your tests case with ocamlopt which produce cmx file. Unlike cmo
file, a cmx file does depend on the cmxs of the modules it use. The result of
ocamldep will tell you about that. The reason for that is a .cmx files carries
information for cross-module optimization, once recompiled, its visitor modules
should change correspondingly. 

There should be some FAQ somewhere contains more information, you may just look


Zheng Li