3 ms·
The terms you're looking for are "single compilation unit" or "unity build". It's used sometimes, I think mostly to help the compiler optimise better. Build t
by Khoth 8y ago
The terms you're looking for are "single compilation unit" or "unity build".
It's used sometimes, I think mostly to help the compiler optimise better.
Build times for a full rebuild may be faster, but may not, since traditional builds can use many CPU cores. However, it stops incremental builds from working - if you modify one source file, you have to recompile everything.
- eequah9L 8y agoOr a compile server / incremental compilation. Tom Tromey worked on supporting this in GCC years ago, and blogged about the roadblocks that he met on the way. I don't remember the details, but eventually the project was abandoned. It might still be interesting to read through this stuff--throw "tromey gcc compile server" at a search engine and see what comes up.