Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Building large and portable projects
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David Brown <caml-list@d...>
Subject: Re: [Caml-list] Building large and portable projects
On Sat, Nov 22, 2003 at 03:12:48AM +1100, skaller wrote:

> For example .c -cc--> .o -link--> exe, we can 
> use the cached .o instead of running cc on the
> .c provided the .c is older.

Older is incorrect, as well.  The program should run cc on the .c
provided that the .c is different than the one used to produce the .o.
Timestamps are useful as a cache, but a proper tool will need to use
file hashes, or something to properly detect a file changing.

An unrelated annoyance I've found is that ocamlc doesn't allow for the
objects to be stored in a separate directory from this source.  This
makes things, such as multiple configurations, multiple targets
difficult.  Since ocamlopt doesn't currently support cross compilation,
anyway, this is less of an issue.

Dave

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners