This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: demengler in libstdc++ is changed
- From: Chris Lattner <sabre at nondot dot org>
- To: DJ Delorie <dj at redhat dot com>
- Cc: gcc at gcc dot gnu dot org, <hjl at lucon dot org>
- Date: Thu, 13 Nov 2003 21:12:26 -0600 (CST)
- Subject: Re: demengler in libstdc++ is changed
On Thu, 13 Nov 2003, DJ Delorie wrote:
> > If it's a problem that it is written in C++, you could always just
> > compile it with the LLVM G++ compiler to C. Include _that_ in
> > libiberty... problem solved! :) :)
>
> It's not that easy if the C++ implementation requires the C++ runtime
> library
Absolutely. I was under the impression that the demangler just used
std::vector and a few other features, not the full runtime. In any case,
it is straightforward to link in parts of the C++ runtime as needed,
converting them to C if you wish. If it _just_ uses std::vector (or
similar header-only libraries), you won't need the runtime at all.
> or if the compiler needed is non-free (or even just difficult to
> obtain).
LLVM is freely available (and easy to obtain):
http://llvm.cs.uiuc.edu/releases/
-Chris
--
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/