Re: Compile time of C++ vs C#

Hans-Peter Diettrich <DrDiettrich1@aol.com>
Wed, 02 Sep 2009 15:23:17 +0200

          From comp.compilers

Related articles
Compile time of C++ vs C# shirsoft@gmail.com (Shirsoft) (2009-09-01)
Re: Compile time of C++ vs C# marcov@stack.nl (Marco van de Voort) (2009-09-02)
Re: Compile time of C++ vs C# DrDiettrich1@aol.com (Hans-Peter Diettrich) (2009-09-02)
Re: Compile time of C++ vs C# cr88192@hotmail.com (BGB / cr88192) (2009-09-02)
Re: Compile time of C++ vs C# sh006d3592@blueyonder.co.uk (Stephen Horne) (2009-09-03)
Re: Compile time of C++ vs C# cr88192@hotmail.com (BGB / cr88192) (2009-09-03)
Re: Compile time of C++ vs C# lefevrol@yahoo.com (Olivier Lefevre) (2009-09-04)
| List of all articles for this month |

From: Hans-Peter Diettrich <DrDiettrich1@aol.com>
Newsgroups: comp.compilers
Date: Wed, 02 Sep 2009 15:23:17 +0200
Organization: Compilers Central
References: 09-09-009
Keywords: performance
Posted-Date: 02 Sep 2009 23:40:33 EDT

Shirsoft schrieb:


> I am curious to know why C# code much faster than a similar sized C++
> code. How does MSIL help? Does having a common base class like object
> help in reducing compile times?


The less ambiguous syntax, simplified preprocessor and true precompiled
header files (assemblies) speed up C# compilation.


> [The optimizer is usually the slowest part of a compiler and I would guess that
> MSIL offers fewer opportunities than native code. -John]


ILASM also doesn't have to create code for an horrible instruction set
(e.g. x86), has no register allocation pressure or instruction ordering
requirements. All this is done by the JIT compiler.


DoDi



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.