By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,234 Members | 1,896 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,234 IT Pros & Developers. It's quick & easy.

algorithm for c++(g++) demangling

P: n/a
Is there any standard algorithm available for gcc demangling?
Jul 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

mahesh wrote:
Is there any standard algorithm available for gcc demangling


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.

Regards
Shan

Jul 23 '05 #2

P: n/a
Shan wrote:
mahesh wrote:
Is there any standard algorithm available for gcc demangling

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.


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.

Regards
Shan

Jul 23 '05 #3

P: n/a

Xavier Décoret wrote:
Shan wrote:
mahesh wrote:
Is there any standard algorithm available for gcc demangling

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.


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.

Regards
Shan


Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.