www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - [ offtopic ] About the "C++ Compilation Speed" article on DrDobbs

reply "Victor Vicente de Carvalho" <victor.v.carvalho gmail.com> writes:
Walter:

On this publication from 2010 
http://www.drdobbs.com/blogs/cpp/228701711 you gave some insight 
and promised a follow up on what design decisions are important 
to make a compiler fast. Did you happen to have written it?
Jun 04 2012
next sibling parent "SomeDude" <lovelydear mailmetrash.com> writes:
On Monday, 4 June 2012 at 16:03:34 UTC, Victor Vicente de 
Carvalho wrote:
 Walter:

 On this publication from 2010 
 http://www.drdobbs.com/blogs/cpp/228701711 you gave some 
 insight and promised a follow up on what design decisions are 
 important to make a compiler fast. Did you happen to have 
 written it?

They are implemented in the D compiler as part of the language design (modules, no preprocessor, avoidance of ambiguities), and I believe the C++ compiler is faster than most others, although the language doesn"t allow many optimizations, due to the preprocessor and the numerous syntaxic ambiguities.
Jun 04 2012
prev sibling parent Dejan Lekic <dejan.lekic gmail.com> writes:
On Mon, 04 Jun 2012 18:03:33 +0200, Victor Vicente de Carvalho wrote:

 Walter:
 
 On this publication from 2010
 http://www.drdobbs.com/blogs/cpp/228701711 you gave some insight and
 promised a follow up on what design decisions are important to make a
 compiler fast. Did you happen to have written it?

I believe that is one of the reasons why DigitalMars C/C++ compiles faster than the rest... -- Dejan Lekic mailto:dejan.lekic(a)gmail.com http://dejan.lekic.org
Jun 06 2012