Twitter
Essays
Random
« Coders at Work | Main | Constructing SSA the Easy Way »
Thursday
Dec102009

A C++ Name Demangler

C++ compilers mangle function names, or rewrite them into something that is unique across the whole program. However, the new names are usually unreadable. You need to demangle them back into a human readable format.

I needed to demangle some C++ method names for debugging purposes and couldn't find an easy to use/build/embed demangler library. Instead, I stripped out parts of the C++ name demangler from GNU binutils and embeded that.

If you need such functionality, you can download the bare minimum stripped C++ name demangler here.

* Provided without warranty, under the GPL license.

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>