Compiling multiple source files --- each file separately, or all together?
Adam Wilson
flyboynw at gmail.com
Fri Dec 26 17:38:55 UTC 2025
On Friday, 26 December 2025 at 10:44:21 UTC, David Given wrote:
> When compiling C or C++, and you have multiple source files,
> you typically compile each source file independently into a .o
> file and then link them together. This is either done manually
> in the build script or automatically if you pass multiple
> source files into the compiler program.
I was speaking with Walter a couple weeks ago and he thinks that
future of DMD is unified compilation. There are a number of
things the compiler can do when compiling all the source files at
once that you just cannot do with independent compilation and
Walter would like to be able to do those things.
So the general recommendation from Walter is unified compilation.
More information about the Digitalmars-d
mailing list