I notice on the same machine, it takes C# much less time than C++ to compile. Why?
NOTE1: I have not done any scientific benchmark.
NOTE2: Before anyone says this isn't programming related, I am implementing a parser, I am finding what I can do from the get go to increase compile speed.
NOTE3: I have a similar question http://stackoverflow.com/questions/588884/why-do-compilations-take-so-long. This question is asking on the specific difference from C/C++ to C#. It's obvious a simple language would be quicker to compile than a complex language, but C and C# are both complex languages.
my takeaway: 1) C/C++ is SLOW from preprocessor and headers. 2) alot of headers causes a lot more data to parse. especially when each file can use the preprocessor can change code 3) C# defer some compilation to program startup 4) IL instructions are simple, machine is not