Search code examples
c#java.netc++compiler-construction

What makes the Java compiler so fast?


I was wondering about what makes the primary Java compiler (javac by sun) so fast at compilation?

..as well as the C# .NET compiler from Microsoft.

I am comparing them with C++ compilers (such as G++), so maybe my question should have been, what makes C++ compilers so slow :)


Solution

  • That question was nicely answered in this one: Why does C++ compilation take so long? (as jalf pointed out in the comments section)

    Basically it's the missing modules concept of C++, and the aggressive optimization done by the compiler.