C++ demangler horrors
H. J. Lu
hjl@lucon.org
Thu Jun 26 20:15:00 GMT 2003
On Thu, Jun 26, 2003 at 03:12:06PM -0400, Kaveh R. Ghazi wrote:
> > From: "H. J. Lu" <hjl@lucon.org>
> >
> > > Can't you write mini replacements?
> > >
> >
> > The one compiled in libiberty use <dynstring>, not <string>. I tried
> > mini <vector> once. But it seems not a small project, considering
> > all the <vector> features the demengler uses. I think my time is
> > better spent somewhere else.
> > H.J.
>
> I agree.
>
> But if this represents a way out of the problem (and I don't know that
> it does) then we could list this in the "beginner" projects section
> and call for volunteers who know c++ to write this code for us.
>
My demengler patch creates a standalone demengler directory. You can
see how <allocator> and <string> are replaced by different
implementations for libiberty. Someone can take it from there and
write a replacement for <vector>. But I don't want to see what will
happen is after 6 months, there are still no volunteers. With my
current approach, it may not be the best solution, but works. The
danger is once it is checked in, no one will feel the need to
write a <vector> replacement.
H.J.
More information about the Gcc
mailing list