algorithm for c++(g++) demangling

S

Shan

mahesh said:
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
 
?

=?ISO-8859-1?Q?Xavier_D=E9coret?=

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.

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.
 
W

waikarmahesh

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.
 

Ask a Question

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.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
474,201
Messages
2,571,049
Members
47,652
Latest member
Campbellamy

Latest Threads

Top