C, still?
C, still?
Posted Oct 1, 2017 7:17 UTC (Sun) by NAR (subscriber, #1313)In reply to: C, still? by philomelus
Parent article: Building the kernel with Clang
The problem is that for every single compilation unit that uses std::map<std::string, std::string> the compiler actually has to read the relevant headers. If there are 20 C++ sources files in the directory using the std::map<std::string, std::string> type, the headers will be read and compiled 20 times. ifdef's don't help at all. What would help is using a single file instead of 20 files but that has other problems.