From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=AWL,SPF_FAIL autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id E928DBC69 for ; Wed, 7 Mar 2007 22:24:30 +0100 (CET) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l27LOURZ026763 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 7 Mar 2007 22:24:30 +0100 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HP3cY-0001yg-UF for caml-list@inria.fr; Wed, 07 Mar 2007 22:24:26 +0100 Received: from ivr94-8-88-162-26-239.fbx.proxad.net ([88.162.26.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Mar 2007 22:24:26 +0100 Received: from li by ivr94-8-88-162-26-239.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Mar 2007 22:24:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Zheng Li Subject: Re: Dependencies and rebuilding Date: Wed, 07 Mar 2007 22:25:27 +0100 Message-ID: <87abyohhko.fsf@pps.jussieu.fr> References: <43CD2D195487A448934920501C6EDB2303E342C2@WIN-MSG-21.wingroup.windeploy.ntdev.microsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ivr94-8-88-162-26-239.fbx.proxad.net User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:WzZt2q5Ku0yH9xils5tR/i97Zvk= Sender: news X-Miltered: at concorde with ID 45EF2D8E.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; dependencies:01 rebuilding:01 externally:01 recompile:01 trivial:01 ocamlopt:01 cmx:01 cmo:01 cmx:01 ocamldep:01 recompiled:01 -li:98 faq:01 lichtenberg:01 compile:01 Hi, Jakob Lichtenberg 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 up. -li -- Zheng Li http://www.pps.jussieu.fr/~li