> > > Why is it happening? Is it so because of more complex templates in recent
> > > libstdc++?
> >
> > If you are asking for compilation speed, yes, the main cause it that
> > libstdc++ consists of many more templates now. If you are asking for a
> > slow-down in an application, you need to provide detailed test cases.
> 
> I asked about compilation speed.

Ok, then let me elaborate somewhat more. I believe that g++ 3 compiles
actually faster than 2.95 if the same headers are used (atleast, it
should consume less memory). The main increase in size is due to the
templatization of the standard library, which is required by the C++
standard, but was not correctly implemented in earlier versions.

With templates, it is necessary to put the complete implementation
into the header files.  It is expected that implementation of the
"export" keyword would significantly speed-up compilation times.
Unfortunately, there is no progress on implementing "export" in g++.

> Oh, I have one more question. What does widely-mentioned "ABI" stand
> for?

"Application Binary Interface". This defines sizes of primitive types,
calling conventions, object layout, virtual-method call mechanisms,
and name mangling.

HTH,
Martin


Reply via email to