[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: g++ 2.95 and g++ 3.0



"Martin v. Loewis" wrote:

> > > > 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++.

Hm, I didn't know that "export" is unsupported in g++. Maybe you know what
compilers support it (Borland, Watcom)? (AFAIR, MSDEV does not.)

Anyway, I am suspiciously look at "export", because it's even hard to implement it
at all, but developers also need their template code optimization and using
"export" it would be many times harder to implement optimization. Am I right?




Reply to: