M
mahesh
Is there any standard algorithm available for gcc demangling?
mahesh said:Is there any standard algorithm available for gcc demangling
Shan said:I think you are asking about name mangling in C++. Name mangling is
usually done by the implementors of the Compilers and there is no
standard way to demangle them. For g++ you have to ask the question in
g++ forum and not here. BTW i dont understand why you want to demangle
since name mangling will be used internally to implement polymorphism.
Xavier said:Demangling is sometime useful to understand a linker error (cannot find
_(*&%&_ symbol for example). If you want to check a library, you can
also apply "strings" on the .so or .a file and you will get mangled
names of symbols in that library (+ some other stuff).
OK, I'll give away one of my favorite "secret" ;-). You can use the tool
c++filt to demangle c++ and java symbols.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.