This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]