Compilation strategy

Timon Gehr timon.gehr at gmx.ch
Sun Dec 16 05:18:22 PST 2012


On 12/16/2012 01:13 PM, Blub wrote:
>> On Sat, 2012-12-15 at 16:55 +0000, Russel Winder wrote:
>>> A quick straw poll.  Do people prefer to have all sources compiled in a
>>> single compiler call, or (more like C++) separate compilation of each
>>> object followed by a link call.
>
> Separate compilation imposes continuous re-processing of files.
> D is a modern language with a proper module system so it's easy to
> figure out dependencies. imo everything should be passed to the compiler
> which then should create a dependency graph and begin compilation with
> the sinks, using as much internal parallelism as possible, as opposed to
> the crappy makefile-level concurrency C++ uses.

D is a modern language with a proper module system and a turing-complete 
type system, so figuring out dependencies is an undecidable problem. 
What you say still applies though.


More information about the Digitalmars-d mailing list