Proposed improvements to the separate compilation model
Vladimir Panteleev
vladimir at thecybershadow.net
Sat Jul 23 12:55:42 PDT 2011
On Sat, 23 Jul 2011 21:53:30 +0300, Andrej Mitrovic
<andrej.mitrovich at gmail.com> wrote:
> Isn't the biggest issue of large D projects the problems with
> incremental compilation (e.g.
> https://bitbucket.org/h3r3tic/xfbuild/issue/7/make-incremental-building-reliable),
> optlink, and the toolchain?
Yes. This is a difficult problem.
Due to how DMD is designed, incremental compilation is only reliable when
compiling one module at a time. Normally, this would require DMD to parse
all imports recursively, for every invocation (thus, for every module).
.di files should greatly speed up parsing (and thus, assuming that is the
major bottleneck, make one-module-at-a-time compilation faster).
--
Best regards,
Vladimir mailto:vladimir at thecybershadow.net
More information about the Digitalmars-d
mailing list