Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2003-11-22 (17:09)
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.


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: